PC Review


Reply
Thread Tools Rate Thread

cant print to local printer (name)?

 
 
jerry
Guest
Posts: n/a
 
      12th Jul 2004
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.


 
Reply With Quote
 
 
 
 
jerry
Guest
Posts: n/a
 
      12th Jul 2004
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.
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can we Send Print at our Local Printer or Network Printer thru Pocket PC zeeshan Microsoft Dot NET Compact Framework 5 13th Dec 2005 12:27 PM
Still can't print from local printer =?Utf-8?B?RWR1YXJkbyBQaWV0cmk=?= Windows XP Work Remotely 1 25th Aug 2005 01:40 PM
Unable to print to local printer... jobs print on network printer instead Bill Hagemann Microsoft Windows 2000 Printing 1 10th Dec 2003 02:19 AM
Can't print from local printer Cal Miyatake Microsoft Windows 2000 Printing 0 5th Nov 2003 05:09 AM
Unable to print through print server to local printer Denis Grimard Windows XP Print / Fax 1 12th Aug 2003 04:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:40 AM.