🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.3rdparty
Article #24

Re: VB5 Check if Printer is Online

#24
From: Charles Kincaid
Date: Fri, 02 Apr 1999 00:00
45 lines
2419 bytes
Stop!

You are not supposed to do that. Windows applications write printer data
to the windows print spooler. The spooler takes care of checking the
status of the printer. What if the printer is a network printer? The
INTERNAL drivers for network printing don't even provide a means of
asking for the remote printer status. What if "print to file" is checked?
That driver could only be "not ready" if the disk is full. 

Just pop up a message box reminding the user to put the printer on-line
and print away! 

>Giles Thurston <GilesT@mentor.co.uk> wrote in
><7e073e$t3e$1@uranium.btinternet.com>: 

>Help!
>
>Does anybody no how to check if a Printer is 'On-Line'?
>
>Before my program sents data to the printer via the Printer Object it
>needs to check if the Printer is On-Line.  I am unable to find a way to
>do this. 
>
>The Printer Object doesn't seem to care if the Printer is On-Line or not
>and no errors are returned if the Printer is Off-Line.
>
>I am writing an application which prints to a Panasonic KX-P3696 Printer
>connected to the local parallel port.  The application is written using
>VB5 (SP3) and is running on Windows '95.
>
>I have routed through MSDN and all the API Books I can find in search of
>a solution but have had no success
>
>Can anybody help??
>
>All information is greatfully received
>
>cheers
>
>GilesT@mentor.co.uk
>
>
>
>
>
Technical Details
Message-ID: <8D9C9305Fckincaidatkcdotnet@msnews.microsoft.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7e073e$t3e$1@uranium.btinternet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5f6f,c60f5e217257965a
X-Google-Attributes: gidf5f6f,public
X-Google-Thread: 110e3b,c60f5e217257965a
X-Google-Attributes: gid110e3b,public
X-Google-Thread: fb992,c60f5e217257965a
X-Google-Attributes: gidfb992,public
X-Google-Thread: 100d42,c60f5e217257965a
X-Google-Attributes: gid100d42,public
X-Google-Thread: 108062,c60f5e217257965a
X-Google-Attributes: gid108062,public
X-Google-Thread: 1143a7,c60f5e217257965a
X-Google-Attributes: gid1143a7,public
From: Charles Kincaid <ckincaid@kc.net>
Subject: Re: VB5 Check if Printer is Online
Date: 1999/04/02
Message-ID: <8D9C9305Fckincaidatkcdotnet@msnews.microsoft.com>
X-Deja-AN: 462055606
References: <7e073e$t3e$1@uranium.btinternet.com>
Organization: What Organization?
User-Agent: Xnews/2.03.30
Newsgroups: comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,comp.lang.visual.basic,cz.comp.lang.basic.visual,microsoft.public.basic.other