View previous topic :: View next topic |
Author |
Message |
StaffanG
Joined: 18 Feb 2005 Posts: 1
|
Posted: Fri Feb 18, 2005 11:09 am Post subject: Pass on variable from asp to MSWord...? |
|
|
Hi!
We have an asp/sql application which handles registration of customers to various departments. etc. We need to send individual confirmations and invitations on printed paper. Wish to use MSWord 2003 with a preformatted template.
From the asp-application I wish to start Word, send in variables to the Word-doc (and print). Possible?
Alternatively I can start Word and send in one variable to a Word-macro which can handle the database request based on that variable.
Key questions:
1. How to start Word and pass on several variables to a document.
2. How to start Word and pass on one variable to a macro.
Can use asp, asp.net, php, javascript, vbscript...
We use IIS 6.0, IE6.0, Office 2003.
Have spent some time thinking of this problem and would appreciate your help. |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Fri Feb 18, 2005 1:33 pm Post subject: |
|
|
Welcome to our forums!
I would advise to use a little different approach to produce your Word document. Instead of starting Word from ASP you can change the content type of the server response to application/vnd.ms-word.
Please check the following article to learn how to do this:
http://www.aspdev.org/articles/asp-export-word/
Let me know if you have any questions?
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|