Enumerate Printers/Page Size/Orientation Pre-Report Preview

  • Thread starter Thread starter r0adh0g
  • Start date Start date
R

r0adh0g

I currently have a form with a list box that shows all my reports.
On said form is a button that when pressed previews selected report.
I would like to put two drop down boxes and a couple of radio buttons on
same form.
I would like the first drop down box to contain a list of printers.
The second to contain a list of page sizes for selected printer.
And the radio buttons Landscape or Portrait.

I would like my original button to preview selected report using information
selected above.

I am very familiar with VBA and Access. Are there any API's and sample code
on how to enumerate the list of printes/pages sizes and to use the info in
the
manner I want? Anybody done this before? Care to share?

Thanks for any help in advance.....

rh
 
rh:

There are numersous ways to enumerate printers. The api call to
EnumPrinters will do that for you. To get paper sizes etc, you need to use
the api call DeviceCapabilities. Our On the Fly Printing will do the
printer enums. If you pick up the Access developer's handbook I believe
that Getz et. al. have the calls to enum paper sizes.
 
Back
Top