Creating report documents using ASP.

C

Colin M.

Hello, I had a quick question about creating Word documents using ASP. I hope
I can explain it properly.

I have a client who would like a report created, using ASP classic, in Word
2002. My question is can I create this document with a header/footer
contained within the same file. (not using filelist.xml and header.htm)

And if the 2 files listed above need to be included, can I avoid the
following message from appearing in Word everytime they generate and open the
report document? "Some of the pages in this web page are not in the
expected location are not in the expected location......."


Thank you in advance.

Colin
 
J

Jonathan West

Hi Colin,

The simplest way to handle this would be to have the necessary Word
templates containing the header & footer predefined.

Then you use automation to open Word and create a new document using the
Documents.Add method, specifying your predefined template.

Then, also using automation, you can add whether text you want to the body
of the document before saving it.

Beware however that Word is not designed for unattended server-side
operation, and is not licensed for this mode of operation. You should take a
look at this article for more information
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757 before
making commitments to your client about this
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top