Printing Word document from .net service in windows 2003 server er

S

Sai Vajja

Hi All

I am trying to print a word document from my windows service (VB.NET) but am
getting the following error:

Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80040154.

Any idea what needs to be done here?
 
M

Michael Nemtsev [MVP]

Hello Sai,

how do u print and where is printer installed?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


SV> Hi All
SV>
SV> I am trying to print a word document from my windows service
SV> (VB.NET) but am getting the following error:
SV>
SV> Retrieving the COM class factory for component with CLSID
SV> {000209FF-0000-0000-C000-000000000046} failed due to the following
SV> error: 80040154.
SV>
SV> Any idea what needs to be done here?
SV>
 
S

Sai Vajja

Hi Michael

I have a windows service that i developed using vb.net running on this win
2003 server that does the printing to a network printer. The idea is to
enable this service to print various documents (.txt, .xls, .pdf etc.)
I am able to produce prints onto this network printer from this service if
it is a image or a text file. But, when it comes to word documents, i am
getting this error (and i think this will be true for excel as well).

Same code works fine from my development machine (XP professional).
 

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

Top