I want to open Word when the user clicks a button on a asp page. The Word doc should also contain some of the fields from my asp page.
Can somebody guide me to how this can be done?
Hi AgentM,
I'm glad that you solved you problem. Could you tell how you deal with permissions problems since MS Word is an .exe and, hence out of process? Do you use some package on MTS to interact with Word?
Thank you.
The reason I was asking is that I never seemed to get this to work. Whenever I tried to launch any of applications like Word, Access etc. from .asp pages, the result was just error message stating that server cannot create object or some permissions error. And as far as I understand, creating a middle-tier component for interaction between .asp and .exe and placing it on MTS is the only way to do it. So if you'll figure out how to do it or at least, how your system is set up, please post it to the forum.
Thnx.
Wow, this is exactly what I'm trying to do too!! I need a cheap way (besides purchasing activePDF) to pull information from my SQL database and put in format that can be easily printed on Avery 5160 labels. This has been a huge task. Currently its running on a standard ASP page, but viewers on AOL and/or Netscape are having problems getting the 3rd and 4th pages to fit. Is printing out to word a realistic solution? :-V
This is for guestg.
Permission problems??/
I am running IIS on Win 2K I have enabled Script source Access and Read in the tab Home Directory for the default web site.
I don't know if this is going to help you.
But no MTS components are involved.
Use
<% Response.ContentType = "application/msword" %>
and then generate the page as u like, there will be openned by the explorer with an word instance in it...otherwise u will need to upload the document to the client and then open with the word from client side script (is not possible from server side script) but if u need to open an word or excel or anyting else u need to use ContentType with the proper value...
U get all the values from your registry in the extension area...
exemple
.doc - .... - the values
-Content Type - application/msword
.xls - will be the same if u look
and so for anny extension
________
George, M
email : shaddow11_ro@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.