How to generate Word Document using ASP on server side?

B

Brian Kwan

Project Description:
Develop a web application to help manage sale operations. There is a
function that to generate a report using data in database, which is a
Word document on server and let user to download and print it out.

Problem:
Found that it's risky to do Word automation on server side using ASP.
The layout of report is a bit complicated. I've a idea of ASP call VB
to automate a Word document, but don't know whether it's work or not.
Or is there any other better alternative to solve this problem?

Many thanks and appreciated with your kindly help!
 
E

Egbert Nierop \(MVP for IIS\)

Brian Kwan said:
Project Description:
Develop a web application to help manage sale operations. There is a
function that to generate a report using data in database, which is a
Word document on server and let user to download and print it out.

Problem:
Found that it's risky to do Word automation on server side using ASP.
The layout of report is a bit complicated. I've a idea of ASP call VB
to automate a Word document, but don't know whether it's work or not.
Or is there any other better alternative to solve this problem?

Many thanks and appreciated with your kindly help!

There are commercial solutions that have implemented the Microsoft specific,
non public compound word document format.
If you want to stick to word only, you can use the 2002 word XML format.
This however, I predict, won't be easy but doable.
 
T

Tom Kaminski [MVP]

Brian Kwan said:
Project Description:
Develop a web application to help manage sale operations. There is a
function that to generate a report using data in database, which is a
Word document on server and let user to download and print it out.

Problem:
Found that it's risky to do Word automation on server side using ASP.
The layout of report is a bit complicated. I've a idea of ASP call VB
to automate a Word document, but don't know whether it's work or not.
Or is there any other better alternative to solve this problem?

Many thanks and appreciated with your kindly help!

One of my favorite subjects! This should give you all you need to know ...
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757
 
B

Bullschmidt

Article: Dynamically Writing Office Documents
http://www.infinetsoftware.com/content/officedocuments.asp
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition",
"attachment;filename=receipt.doc"

How to use ASP to generate a Rich Text Format (RTF) document to stream
to Microsoft Word
http://support.microsoft.com/kb/q270906/
Uses FSO.

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

<<
Project Description:
Develop a web application to help manage sale operations. There is a
function that to generate a report using data in database, which is a
Word document on server and let user to download and print it out.

Problem:
Found that it's risky to do Word automation on server side using ASP.
The layout of report is a bit complicated. I've a idea of ASP call VB
to automate a Word document, but don't know whether it's work or not.
Or is there any other better alternative to solve this problem?

Many thanks and appreciated with your kindly help!
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top