Home > Software engineering >  Unable to background program control word duplex printing parameters automatically
Unable to background program control word duplex printing parameters automatically

Time:09-17

Requirements of the project: the background code control office and PDF printing function, requirement of printing parameters can be set, now in addition to both sides can undertake printing parameter setting, parameter control of automatic duplex printing, there has been no efficient way to tried method:
1. Refer to https://msdn.microsoft.com/en-us/VBA/Word-VBA/articles/application-printout-method-word, the MSDN documentation, set PageSetup/Options object properties (TwoPagesOnOne, etc.), don't work
2. The simulation print set hotkeys, such as my epson, successively simulation CTRL + p, p, d, down, enter, no effect
3. The recorded in VBA macros, but, but, set up double code did not appear
4. The program calls the VBA code, use with Dialog (wdDialogFilePrint), but don't know DuplexPrint parameter types in the parameter list is what ever more in-depth understanding of the,

Attached to the Dialog argument list of word, what I use is wdDialogFilePrint,


Did you greatly, successfully set up the parameters, thanks! @

CodePudding user response:

https://msdn.microsoft.com/en-us/vba/word-vba/articles/built-in-dialog-box-argument-lists-word attach word Dialog argument list

CodePudding user response:

Forget to mention, my printer support duplex printing

CodePudding user response:

The top of the big geek, help me
  •  Tags:  
  • VBA
  • Related