Solved

Using Devicecapabilities API

Posted on 2001-08-17
3
350 Views
Last Modified: 2008-03-17
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
Comment
Question by:tonybm
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Ark earned 100 total points
ID: 6403093

>>HOWTO: Determine Available PaperBins with DeviceCapabilities API<<
http://support.microsoft.com/support/kb/articles/Q194/7/89.asp
0
 
LVL 27

Expert Comment

by:Ark
ID: 6403099
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
 

Author Comment

by:tonybm
ID: 6629704
Very Sorry  for the delay in marking.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question