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

displaying html in word

Status
Not open for further replies.

csphard

Programmer
Joined
Apr 5, 2002
Messages
194
Location
US
I'm using the following statement to display and html document in word. Response.ContentType = "application/msword"

This works. However i was trying to use a style in the table tag for example the following statment
<TABLE STYLE=&quot;page-break-after: always;&quot;>

However it does not work. Does anyone know of how i can force a page breaks when the page is in word. I assuming page-break-after: always does not work when its in word
 
Hey CSP...

I just had to deal with this problem, this is how I did it. I set the page size in inches to 9x11 then at the end of each page (or where I wanted to be the end of a page) I created a table row that was 4.5 inches tall. I was sure that each table was going to be at least 5 inches tall so this worked. It surprisingly didn't scroll down the next page if it was too long, it would just page break and start again at the top.

This was using IE6 and Word XP... On a winXP system, I could imagine it could be different with different setups.

I hope that helps.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top