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

ASP to Word--2 Questions

Status
Not open for further replies.

fpgiv

Programmer
Oct 1, 2003
91
US
Hi!
I'm using a Response.ContentType = "application/msword" to make my ASP page print in Microsoft word. There are two things I'd like to do.
One is that I would like to add the page numbers at the bottom of the pages that are created. It's not doing this right now, and I was hoping there is a simple way to do it.
The other is that my <td>s seem all out of sync. If I look at the page, it's fine, and the table datas are right, but in the word version, one column takes up most of the screen and there is only a little room for the other columns. Can anyone offer a suggestion?
Thanks!
 
ad one:
to me this sounds like a mission impossible. If your output is on pages with less then 60 lines (or so) then this could work: after writing the page number you'll add a 'hard' formfeed.

ad two:
is it possible to show us code?
is the output oke in the browser?
which word version?

ttmug.gif
 
This is possible but only you gonna have a diffrant file for header and footer. To see it, open some file in Microsoft Word which has header or footer (page numbers...) save it as html, and then you gonna see what I just told you...

Another solution would be if you know exactly when you have to split to the next page then add your numbers and then add this <br clear=all style='page-break-before:always'> to break the page...

Anyway if you were showing us your code would be better...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top