424,303 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,303 IT Pros & Developers. It's quick & easy.

Using Word Interop Assembly

P: n/a
Hi All,

I have created an ASP.NET project and for one of the pages I want to
pop open a word template and fill in some info. In Visual Studio
2005, I added the COM reference Microsoft Office 11.0 Object library.
This adds a few dll's to the \bin directory. When I run the code from
visual studio, it works fine. When I copy it to the server (dll's and
all), I get the following error when I navigate to the page:

Retrieving the COM class factory for component with CLSID
{00020906-0000-0000-C000-000000000046} failed due to the following
error: 80080005

Any ideas? I'm sure it has to do with how I added the assembly, but I
have very limited experience in this area. I have done similar
projects using windows forms and you can use 'Copy Local' to move the
assembly reference into the working directory. How can I do something
similar with ASP.NET?

Thanks,

Ryan

Sep 20 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Sep 20, 5:11 pm, rwie...@iastate.edu wrote:
Hi All,

I have created an ASP.NET project and for one of the pages I want to
pop open a word template and fill in some info. In Visual Studio
2005, I added the COM reference Microsoft Office 11.0 Object library.
This adds a few dll's to the \bin directory. When I run the code from
visual studio, it works fine. When I copy it to the server (dll's and
all), I get the following error when I navigate to the page:

Retrieving the COM class factory for component with CLSID
{00020906-0000-0000-C000-000000000046} failed due to the following
error: 80080005

Any ideas? I'm sure it has to do with how I added the assembly, but I
have very limited experience in this area. I have done similar
projects using windows forms and you can use 'Copy Local' to move the
assembly reference into the working directory. How can I do something
similar with ASP.NET?

Thanks,

Ryan
The COM object (in this case, Word) needs to be installed on the
server. You can do this by installing Word/Office on the server.

This will work but I think they're encouraging people to use the
PIAs...

Sep 20 '07 #2

P: n/a
Well, since office is already on the server and it still doesn't work,
I think the message is pretty clear. I will take Mark's suggestion
and not do it that way.

Thank you both for your replies.

Does anybody know of anything any cheaper than Aprose? $900 for one
customer site seems awfully steep. And I don't have enough customers
requesting this to amke it worth buying the OEM.

Sep 20 '07 #3

P: n/a
<rw*****@iastate.eduwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
Does anybody know of anything any cheaper than Aprose?
No.

What are your actual requirements for this? There are probably other ways of
doing things...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 20 '07 #4

P: n/a
The user is requesting a shipment from this company. The Word doc (or
PDF) is basically going to be a receipt with the information from the
shipment request. So, the receipt is a template that will get some
blanks filled in.

Sep 21 '07 #5

P: n/a
Mark, thanks a lot. You were a big help.

-Ryan

Sep 21 '07 #6

P: n/a

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:em******************@TK2MSFTNGP04.phx.gbl...
>
What are your actual requirements for this? There are probably other ways
of doing things...
I need to replace a DCOM application running on Windows 2003. It is using
Word for mailmerge with SQL data to create a file for the client
application. How to do this better?
Sep 21 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.