setActivePrinter

V

Vineet Ahuja

Hello Ppl
I have a word application object and I am setting the network printer as
m_WordApp.SetActivePrinter("\\\\NetworkAdd\\printerName"

And then cal
m_WordApp.PrintOut(..
But I get an exception "NoPrinter Installed.

If I make this network printer as default from the printer settings and just cal
m_WordApp.PrintOut(..
Then everything works just fine implying that the printer is working alright

I have also tried seting the printer as
m_WordApp.SetActivePrinter("\\\\NetworkAdd\\printerName on NetworkAdd"
and als
m_WordApp.SetActivePrinter("\\\\NetworkAdd\\printerName on PrinterPort"
Though in both the above cases I do not get any exception but I dont have the prints outs either

Could anybody out here help in this situation
There is no enough documentation other than http://support.microsoft.com/default.aspx?kbid=17727

Thanks in Advanc
 

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