cant print to local printer (name)?

J

jerry

have a C++ application that runs on many Windows 2000
systems. prints fine to printers that are networked but
not to printers that are LOCAL!

i use DEVNAMES "char * cPrinterName = ( char* )pdevnames +
pdevnames->wDeviceOffset;" to get printer name. works
fine unless the printer is a LOCALly attached printer then
it just does not work?

when network default printer, i get a printer name
something like:
"\\USCHI1-TCNFSP01\CHI1DEVSHPLJ4SI"
when i print to the above, works fine.


however, when it is a local default printer, i get a
printer name something like:
"HP LaserJet 4000 Series PCL 5e"
when i print to the above...nothing comes out...i am sure
this is not the name but what is???

this has to be done with no human intervention.



i need to print to the Windows 2000 default printer no
matter if LOCAL or networked.
 
J

jerry

fixed it...the name had SPACES so the command had to have
the name in quotes...

thanks anyway,

jerry

ps: my text showed the name in quotes but that was only
for this board...there were no quotes in the program till
now!
 

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