🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Is printer online?

#5057
From: Bob Gonder
Date: Fri, 04 Nov 2005 16:42
31 lines
2298 bytes
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: <qn2nm11k83dj96gd4h0kqo8q7vn3pnrmio@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4367ef00@newsgroups.borland.com> <gkcgm1lupnn7b403ft6f26nr78k1jdbjl3@4ax.com> <436b57a0@newsgroups.borland.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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Is printer online?
Date: Fri, 04 Nov 2005 08:42:44 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <qn2nm11k83dj96gd4h0kqo8q7vn3pnrmio@4ax.com>
References: <4367ef00@newsgroups.borland.com> <gkcgm1lupnn7b403ft6f26nr78k1jdbjl3@4ax.com> <436b57a0@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.80.180
X-Trace: newsgroups.borland.com 1131122546 69.69.80.180 (4 Nov 2005 08:42:26 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail