🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5059

Re: Is printer online?

#5059
From: Paul Montgomery
Date: Sat, 05 Nov 2005 02:20
41 lines
2542 bytes
Hi Bob,

Thanks for your reply. I would just like to know the status
of the printer that I have open.

"Bob Gonder" <notbg@notmindspring.invalid> wrote in message 
news:qn2nm11k83dj96gd4h0kqo8q7vn3pnrmio@4ax.com...
> Paul Montgomery wrote:
>>"Bob Gonder"  wrote
>>> Paul Montgomery wrote:
>>>
>>>>With api functions, how can I determine if the default printer
>>>> is online and ready to print rather than dumping the print job
>>>>to the spooler??
>>>
>>> See  PRINTER_INFO_2
>>> Perhaps use EnumPrinters() to get the P_I_2
>>
>>Any examples of how to do this?
>
> Do you know how to find the default printer?
> I never bothered to find out because I don't believe in messing with
> the Windows settings, and use my own printer selection routines, and
> remember the last-selected/used printer to use as a default.
>
> Or do you just need to know how to get the status of the printer you
> have open?
>
> If you have FireFox, you can look here
> http://tinyurl.com/cxysw
> Or Google for PRINTER_INFO_2 then press the Groups link at the top.
> The first link is to a Microsoft forum
> http://tinyurl.com/7hqbc
>
> Add the word borland to your search: "PRINTER_INFO_2 borland"
> And you find this EnumPrinters code.
> http://groups.google.com/group/borland.public.cppbuilder.winapi/browse_thread/thread/6447d4bbdb55aac1/0608b9b1725d256f?lnk=st&q=PRINTER_INFO_2+borland&rnum=2&hl=en#0608b9b1725d256f
> http://tinyurl.com/dw8aa
>
>
> 
Technical Details
Message-ID: <436c16d4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4367ef00@newsgroups.borland.com> <gkcgm1lupnn7b403ft6f26nr78k1jdbjl3@4ax.com> <436b57a0@newsgroups.borland.com> <qn2nm11k83dj96gd4h0kqo8q7vn3pnrmio@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,18f116f17601539a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul Montgomery" <pxgator@aculink.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4367ef00@newsgroups.borland.com> <gkcgm1lupnn7b403ft6f26nr78k1jdbjl3@4ax.com> <436b57a0@newsgroups.borland.com> <qn2nm11k83dj96gd4h0kqo8q7vn3pnrmio@4ax.com>
Subject: Re: Is printer online?
Date: Fri, 4 Nov 2005 19:20:18 -0700
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
NNTP-Posting-Host: 70.58.189.203
Message-ID: <436c16d4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131157204 70.58.189.203 (4 Nov 2005 18:20:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail