ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pass on variable from asp to MSWord...?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
StaffanG



Joined: 18 Feb 2005
Posts: 1

PostPosted: Fri Feb 18, 2005 11:09 am    Post subject: Pass on variable from asp to MSWord...? Reply with quote

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
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Fri Feb 18, 2005 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

SQL Tutorial