|
-
Aug 18th, 2022, 07:19 AM
#1
Thread Starter
Fanatic Member
[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.
-
Aug 18th, 2022, 07:43 AM
#2
Re: Open printing preferences for setup the default for the printer
I'd probably begin by exploring DocumentProperties() in Winspool.drv
-
Aug 18th, 2022, 08:09 AM
#3
Thread Starter
Fanatic Member
Re: Open printing preferences for setup the default for the printer
 Originally Posted by dilettante
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.
-
Aug 18th, 2022, 08:16 AM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|