Using Devicecapabilities API

I need to get an enumeration of the Bin Type Numbers and PaperSize Numbers for a selected printer. I have the printer's Device Name and its Port. I have managed to get the Text Listings for the Items above using the DC_BINNAMES and DC_PAPERNAMES. My problem is I cannot get the API to work using the DC_BINS and DC_PAPERS settings.

tonybmAsked:
Who is Participating?
 
ArkConnect With a Mentor Commented:

>>HOWTO: Determine Available PaperBins with DeviceCapabilities API<<
http://support.microsoft.com/support/kb/articles/Q194/7/89.asp
0
 
ArkCommented:
PS For PaperSize code is the same, just change

Private Const DC_BINS = 6
Private Const DC_BINNAMES = 12

to

Private Const DC_PAPERSIZE = 3
Private Const DC_PAPERNAMES = 16

Cheers
0
 
tonybmAuthor Commented:
Very Sorry  for the delay in marking.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.