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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outputting to word and page breaking

Status
Not open for further replies.

fpgiv

Programmer
Oct 1, 2003
91
US
Hi,
I can generate ASP pages in word no problem, but the pages never break when I want them to. Is there a way to insert a page break automatically?
Thanks.
 
YES use this line of code where ever you want to a page break...

<p style="page-break-after: always">


-VJ
 
Hi VJ,
I copied and pasted that exactly into my html, but that didn't do anything :(
 
can you show your code and where and on what basis you actually want to break your page....

thanks

-VJ
 
I can't paste the whole code, but I can show you the general idea...
<%
Response.ContentType = "application/msword" 'Print in word
'then various tables, etc'
%>
</table>
<p style="page-break-after: always">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- More tables after here -->
 
you could also attempt to stick in Ascii chars to use manual page breaks :

chr(012)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top