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!
>-----Original Message-----
>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.
>
>
>.
>
|