I have two windows header window and main window.
in my header window i am displaying document no. and according to that doc. no. the materials of that document no. should be printed in the main window and as the document no. changes there should be a page break.
how should i match the document no. in main window with the document no. in the header window.
and how to give page break.