Subject Re: printer paper source
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sat, 8 Aug 2020 21:37:23 -0700
Newsgroups dbase.getting-started

On 8/8/2020 1:19 PM, rich@autotraker.com wrote:
> You have to query the spooler driver to get the sources or bins. You can
> get info on any connected printer, even networked printers.
> You need to use DeviceCapabilities API from winspool.drv
> https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-devicecapabilitiesa
>
> I wrote a CC some years ago to return that data. Not sure exactly where
> it is but I'll look Monday.
> I might have even posted it on the newsgroup so try a search for
> DeviceCapabilities
> It was part of my "roll your own" choosePrinter( ) so I could select and
> store printer information.
>
> You can also get the information from WMI and Win32_Printer using
> OleAutoClient("WbemScripting.SWbemLocator")
> I might have code to at least get someone started writing a solution
> using that.
> Like I said, I'll look around Monday and see if I can find anything.
> Rich....
>

Thanks, Rich. Did a search through misc code in the dUFLP hoping maybe
something was there, but ...

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm