473,320 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP + Word ???

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
4 3938
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
1
by: beanie | last post by:
i am a c programming beginner and i am trying to Create a concordance of Word Count for a text File in c programming but my code isn't working.please can u help me out.here is my code: #include...
2
by: beanie | last post by:
i am a beginer in c programming and i am trying to Create a Concordance of Word Count for a Text File but my code is not working.pls can anyone helpme out.here is my code: #include <stdio.h>...
0
by: alivip | last post by:
I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and ...
5
by: alivip | last post by:
How can I get every Token (word) and PreviousToken(Previous word) From multube files and frequency of each two word my code is trying to get all single word and double word (every Token (word) and...
1
by: dittytwo | last post by:
Hi there The below code works if you don't try to do anything to the word document which is great (Not :D) I am having problems with the context command both text (i.e initial document with no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.