🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vb.general.discussion
Article #3

Re: VB printer trick

#3
From: AS
Date: Thu, 12 Nov 2026 16:05
21 lines
1478 bytes
> For Each objPrt in Printers
>   objPrt.Print "";
>   ' here we retrieve the 
>   ' desired properties...
>   objPrt.KillDoc
> Next

example

https://itstillworks.com/how-to-get-printer-information-using-vb6.html

let's say you use the code presented at the above URL, now let's say
you change the paper from A4 to Letter or whatever else and use the
printer menu to reconfigure the current paper format; your VB app will
still report A4, but not if you use the trick we saw :) all in all it's
perfectly logical; why polling all printers all time if we don't need
them :)

 
Technical Details
Message-ID: <20261112170554.00003cda@invalid.invalid>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <20261112163957.00000783@invalid.invalid>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: AS <invalid@invalid.invalid>
Newsgroups: microsoft.public.vb.general.discussion
Subject: Re: VB printer trick
Date: Thu, 12 Nov 2026 17:05:54 +0100
Organization: n/a
Message-ID: <20261112170554.00003cda@invalid.invalid>
References: <20261112163957.00000783@invalid.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org;
	logging-data="1528714"; mail-complaints-to="abuse@news.solani.org"
Cancel-Lock: sha1:XX3StcWyW/CBas0QrVFjH4zRQUM=
X-User-ID: eJwFwQERADEIAzBLsNFyyAH29S/hE1w6N4NgQND7csYb2FS9xbEuMbOmQ63DxdD31gkr2/oBM8YRag==