Hi Folks,
I am trying to output the content of my ASP page to an MS Word Document with
a specific page size (8.5x11) and margins (.25" all around). I have used
the Response.ContentType = "application/vnd.ms-word" - along with the
Response.AddHeader to force the download without any trouble.
However, because this method outputs html, I can't get it to format the
margins in the resulting word document. While I can use the "style" tags to
fake a margin by entering a negative number (style=Margin-Left : -.75in), it
doesn't really change the documents margins that need to be set for
printing. and I can't set the page size either.
So, I tried digging in to the "FileSystemObject" to create an RTF file.
This sort-of works, but fills the server up with files that need to be
manually deleted. Also, the browser has a problem refreshing when viewing
an rtf file that has been overwritten with new information.
Is there any better solution for generating on-the-fly Word Documents which
require detailed formatting of margins and page size?
Thanks very much,
Jack Coletti
St. Petersburg, FL