Results 1 to 4 of 4

Thread: [RESOLVED] Open printing preferences for setup the default for the printer

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    928

    Resolved [RESOLVED] Open printing preferences for setup the default for the printer

    I need to open off the process, a given printer (by its name), the window printing preferences, but that it affect the global default, not just that print, or in my APP environment.

    I need the user to be able to select the paper thin like, 80gr, 90gr, 200gr, etc. in a laser printer, so I am interested in that Window in particular.

    I searched VB6 + printing dialog, but everything is about for setup the app context for the current printjob.

    Any idea?.

    PD: I case you wonder, I ran a multi-process vb6 APP suit, the process with the UI is not the same process that prints.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    Another way, is possible to tell the printer object in VB6 which paper thin is? not size, but thin.

    And to get all the thin options for a given printer, so I can build-in the app that list?.
    Last edited by flyguille; Aug 18th, 2022 at 07:25 AM.

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Open printing preferences for setup the default for the printer

    I'd probably begin by exploring DocumentProperties() in Winspool.drv

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    928

    Re: Open printing preferences for setup the default for the printer

    Quote Originally Posted by dilettante View Post
    I'd probably begin by exploring DocumentProperties() in Winspool.drv
    I am looking for a solution like SHELL "CMD /c ....." , to do the same effect that clicking in the printer icon -> printing preferences. So, it can run offprocess and don't halt the main UI, I see no property in the vb6 native printer object for setting the paper weight, so, all I need is that, the shortcut in command line.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    928

    Re: Open printing preferences for setup the default for the printer

    Ok, found, case closed!.

    It is. And done......

    rundll32 printui.dll,PrintUIEntry /e /n "printername"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width