• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

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.

0
tonybm
Asked:
tonybm
  • 2
1 Solution
 
ArkCommented:

>>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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now