CreateObject("Word.Application") Problems

G

Greg Andora

Hello,

I've had an ASP page that worked for at the minimum for a year and now it is acting very odd and I need some help to fix it. What my page does/did is creates a Word.Application object and a new document from a template. It then proceeds to fill in a bunch of the information on the word document using bookmarks and data from a database. Then it saves the document to a directory and sends the user off to go get the new document.

What is extremely odd about this is that on my two machines it is working fine, but on my firm's managed desktops, they get a error when word tries to create the application object. I don't quite understand how permissions in IE would come into play here since ASP code is run on the server right? Isn't the Word.Application object being created on my server and not the clients?

Does anybody have any suggestions on this?

Thanks a ton (in advanced),
Greg Andora
 
J

John Blessing

Greg Andora said:
Hello,

I've had an ASP page that worked for at the minimum for a year and now it
is acting very odd and I need some help to fix it. What my page does/did is
creates a Word.Application object and a new document from a template. It
then proceeds to fill in a bunch of the information on the word document
using bookmarks and data from a database. Then it saves the document to a
directory and sends the user off to go get the new document.
What is extremely odd about this is that on my two machines it is working
fine, but on my firm's managed desktops, they get a error when word tries to
create the application object. I don't quite understand how permissions in
IE would come into play here since ASP code is run on the server right?
Isn't the Word.Application object being created on my server and not the
clients?
Does anybody have any suggestions on this?

Thanks a ton (in advanced),
Greg Andora

Yes, it is being created on the server, but, (assuming you are using
anonymous authentication), it is being created by the IUSR_machinename user,
who will need execute privileges on MSWord and write privileges in the
folder you create the document.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
 
B

Bob Barrows

John said:
is acting very odd and I need some help to fix it. What my page
does/did is creates a Word.Application object and a new document from
a template. It then proceeds to fill in a bunch of the information
on the word document using bookmarks and data from a database. Then
it saves the document to a directory and sends the user off to go get
the new document.
fine, but on my firm's managed desktops, they get a error when word
tries to create the application object. I don't quite understand how
permissions in IE would come into play here since ASP code is run on
the server right? Isn't the Word.Application object being created on
my server and not the clients?

Yes, it is being created on the server, but, (assuming you are using
anonymous authentication), it is being created by the
IUSR_machinename user, who will need execute privileges on MSWord and
write privileges in the folder you create the document.

More information can be found here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;257757

Bob Barrows
 
B

Bob Barrows

John said:
is acting very odd and I need some help to fix it. What my page
does/did is creates a Word.Application object and a new document from
a template. It then proceeds to fill in a bunch of the information
on the word document using bookmarks and data from a database. Then
it saves the document to a directory and sends the user off to go get
the new document.
fine, but on my firm's managed desktops, they get a error when word
tries to create the application object. I don't quite understand how
permissions in IE would come into play here since ASP code is run on
the server right? Isn't the Word.Application object being created on
my server and not the clients?

Yes, it is being created on the server, but, (assuming you are using
anonymous authentication), it is being created by the
IUSR_machinename user, who will need execute privileges on MSWord and
write privileges in the folder you create the document.
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top