By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,830 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,830 IT Pros & Developers. It's quick & easy.

ASP + Word ???

P: n/a
I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

I am running window 2000 professional with IIS 5.0 installed.
I know it is a ntfs permissions error and that IUSR_ComputerName needs
permission to interface with word, i am just not sure which file needs to be
the recipient of these permissions. I have located 'word.exe' in program
files, set appropriate permission but no
joy.

If anyone can help me get over this hurdle it would be appreciated.
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Adam Knight typed:
I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions.
Access is denied to this object.


It is not recommended to use Word Automation (see Microsoft KB)
You should generate RTF on-the-fly. Generated documents can be opened
with MS Word and there is no need to have MS Word installed on the
server.

More info on http://www.myLittleTools.net/mlw

Best regards

--
// myLittleTools.net : leading provider of web-based applications.
// myLittleAdmin : online MS SQL manager
// http://www.mylittletools.net
// we*******@mylittletools.net


Jul 19 '05 #2

P: n/a
If you decide not to heed this advice, then you need to log in to your
machine with the IUSR account (which means you need to set a password) and
start Word. This will create a profile for the IUSR account, and set up
Word.

"el.c. - myLittleTools.net" <NO*************@mylittletools.net> wrote in
message news:en**************@TK2MSFTNGP10.phx.gbl...
Adam Knight typed:
I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions.
Access is denied to this object.


It is not recommended to use Word Automation (see Microsoft KB)
You should generate RTF on-the-fly. Generated documents can be opened
with MS Word and there is no need to have MS Word installed on the
server.

More info on http://www.myLittleTools.net/mlw

Best regards

--
// myLittleTools.net : leading provider of web-based applications.
// myLittleAdmin : online MS SQL manager
// http://www.mylittletools.net
// we*******@mylittletools.net

Jul 19 '05 #3

P: n/a
Rather than using a tool, I just created a template of
what I wanted the document to look like in Word. I saved
the document and then opened it in notepad. I took the
Word "html" looking code and pasted it in a script
wrapping each line of code in a File.Writeline. This way
I could simply read my database information and plug in
the correct values while writing to a file that creates a
word document. It was really quite easy once I figured
out the process.
Jul 19 '05 #4

P: n/a
If you're using a custom component for office automation, the
component has to be installed in Component Services in order to work
in Windows 2000. If you used regsvr32 to install the component, its
not enough because of security issues.

Go to Start-->Settings-->Control Panel-->Administrative
Tools-->Component Services-->

Select-->Component Services-->Computers-->My Computer-->Com +
Applications.

Select-->Action (from Menu bar), then New

Select Create an empty application then Next, type name of app then
Next, select this user, and type in the Network username/pass which
will be associated with running this process, click Finish.

Select Com + applications again, select the newly created package in
right pane, select components. Now, using windows explorer drag and
drop your component to this window.
"Lisa" <an*******@discussions.microsoft.com> wrote in message news:<02****************************@phx.gbl>...
Rather than using a tool, I just created a template of
what I wanted the document to look like in Word. I saved
the document and then opened it in notepad. I took the
Word "html" looking code and pasted it in a script
wrapping each line of code in a File.Writeline. This way
I could simply read my database information and plug in
the correct values while writing to a file that creates a
word document. It was really quite easy once I figured
out the process.

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.