|
-
May 8th, 2001, 03:22 PM
#1
Word Templates
Why can't I create a Word Application object when I execute the following line of code:
Set oWordApp = Server.CreateObject("Word.Application.9")
It gives the error that I can't create an Out of Process component.
I've got Word2000 installed and I got the ProgID above from the OLE/COM Object Viewer, therefore my PC must recognize the ProgID.
Further, how can I use a Word template (with bookmarks), to send parameters to from within ASP code? I managed to do it in VB, but I don't know if it's going to work in ASP (if only I can get past the CreateObject statement...)
Thanks
-
May 9th, 2001, 03:38 PM
#2
...some progress...
I've managed to write a dll component in VB, which creates a Word.Application.9 object, exposing a method which sends parameters to bookmarks in a Word Template.
When I create an instance of this object in ASP code (VBScript) and call the method, it works perfectly on the Server (where the dll is registered): It sends parameters to the bookmarks and opens up a Word document, based on the template, in a new session on the taskbar.
The problem is: How can a client machine, when executing the specific page, obtain the Word document that is created on the Server? Do I miss something here or is it impossible to create a Word document on the server and send it to the client machine together with the executed html code?
I want the client to be able to print the Word document on his own PC.
Any of you Guru's out there, please give some advise!!
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|