Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control pages

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how to make pages break with use control page on report printing
 
Use this stylesheet code...

Code:
<style type=&quot;text/css&quot;>
 P { page-break-after: always }
</style>

Anytime a <p> tag is encountered a page break will occur. You could (of course) set it to any tag or class you preferred.

Later,
Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
could you clarify this for me please

<style type=&quot;text/css&quot;>
P { page-break-after: always }
</style>

The <p> stands for paragraph if I am correct, what happen if you have a long report which uses <p> when building the page at run time? My question is, can I use something else to mark my page break eg <PB> or something similar?

probably is a lot of nonsense but if you don't ask !!!!

Thanks
Mo Life is like a box of Chocolates..... So is Microsoft
 
You could probably set up a class...
Code:
<style type=&quot;text/css&quot;>
 P.pb { page-break-after: always }
</style>

<p>This para won't page break</p>
<p class=&quot;pb&quot;>This para will page break</p>

-or-

<style type=&quot;text/css&quot;>
 B.pb { page-break-after: always }
</style>

<p>This para will never break until a control is sent.<b class=&quot;pb&quot;></b>Like now.</p>

I don't have a printer hooked up to this PC so I can't try the code but I bet it will probably work.

HtH, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top