Ok. If your number of forms is not fixed, I mean you do not know which
will be your last page. But I guess even if the number of pages change,
the master page for particular pages remain same. Lets say there are 100
pages. Master page for 1, 100 uses Master page 1,3 respectively and for
pages 2-99 it uses master page2. If we are dynamically adding pages then
it should replicate the same master page that it added.Thanks,Bibhu.