Valid papersizes for selected printer

  • Thread starter Thread starter Jeffrey Lewis
  • Start date Start date
J

Jeffrey Lewis

I have a form that allows the user to select a printer,
paper size and orientation, among other things. I
populate the list of printers using the
Application.printers collection and see references to a
Papersizes collection but can't find any information that
describes how to determine the valid papersizes for a
selected printer. Anybody have some insights?
 
Jeff:

Determining Paper Sizes available requires calling an API, there really
isn't a collection. If you want to investigate that api then it is called
"DeviceCapabilities". It can return an array of printer paper sizes
supported. You can look it up in MSDN (http://msdn.microsoft.com) searching
for the api and VB and you should find a discussion as well as code....
 
Back
Top