Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:02:48+00:00 2026-06-07T02:02:48+00:00

I need to get the available supported printer document features for a particular printer

  • 0

I need to get the available supported printer document features for a particular printer through the win32 api.

The options I’m referring to are displayed for a sample printer in the image below. You can get this dialog by right clicking the printer icon and the click preferences, and the clicking the advanced tab in the dialog.

in the image

Can anyone tell me the need api i need to call, and in what other?

I am targeting Windows Windows XP+ and using vb6.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:02:50+00:00Added an answer on June 7, 2026 at 2:02 am

    What I think you are looking for is DeviceCapabilities from winspool.drv. Sample code from Microsoft. Most of the documentation online now days is for .Net, So I typed in the VB6 definition from Dan Appleman’s Visual Basic Programmer’s Guide to the Win32 API

    The declaration for VB6 is:

    Declare Function DeviceCapabilities& Lib "winspool.drv" Alias "DeviceCapabilitiesA" (ByVal lpDeviceName as String, ByVal lpPort as String, ByVal iIndex as Long, ByVal lpOutput as String, ByVal lpDeviceMode as Long)
    

    Based on your Comment you would need to use DocumentProperties it can be used to retreive or modify a DevMode Structure. It may or may not have what you are looking for. Your best bet would be to get the above book, Chapter 12 has wealth of information. Also looking at your picture it looks like you are using somesort of a POS print, you should consult the manufacturers documentation about specific api’s that the printer might support.

    Declare Function DocumentProperties& Lib "winspool.drv" Alias "DocumentPropertiesA" (ByVal  hwnd as Long, ByVal hPrinter as Long, ByVal pDeviceName as String, ByVal pDeviceModeOutput as Long, ByVal pDeviceModelInput as Long, ByVal fMode as Long)
    

    DevMode Structure

    Public Const CCHDEVICENAME = 32
    Public Const CCHFORMNAME = 32
    
    Type DEVMODE
        dmDeviceName as String * CCHDEVICENAME
        dmSpecVersion as Integer
        dmDriverVersion as Integer
        dmSize as Integer
        dmDriverExtra as Integer
        dmFields as Long
        dmOrientation as Integer
        dmPaperSize as Integer
        dmPaperLength as Integer
        dmPaperWidth as Integer
        dmScale as Integer
        dmCopies as Integer
        dmDefaultSource as Integer
        dmPrintQuality as Integer
        dmColor as Integer
        dmDuplex as Integer
        dmYResolution as Integer
        dmTTOption as Integer
        dmCollate as Integer
        dmFormName as String * CCHFORMNAME
        dpBitsPerPixel as Integer
        dmBitsPerPel as Long
        dmPelWidth as Long
        dmPelHeight as Long
        dmDisplayFlags as Long
        dmDisplayFrequency as Long
        dmICMMethod as Long
        dmICMIntent as Long
        dmMediaType as Long
        dmDitherType as Long
        dmReserved1 as Long
        dmReserved2 as Long
    End Type
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need get the id of an images which is place inside a datatemplate..
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need get all items these have no categories int? categoryId = null; var
I have linq request. I need get item.Title in select. how do this? var
I have two tables with a weak relation. I need get a text value
Need to get the 10 word before and 10 words after for the given
Need to get an div with overflow:hidden; not to wrap its children. I need
I need to get Current page Identifier and current module in Magento. I used
I need to get information on loaded data percentage when UIWebView loads page. I
I need to get the contents from this URL http://google.fr/ok in a NSString can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.