Microsoft KB Archive/61966

Macro to Choose Envelope with HPPCL.DRV Versions 3.2, 3.2b

PSS ID Number: Q61966 Article last modified on 06- 7-1991

1.00

MS-DOS

Summary: Below is a macro to choose Envelope as the paper source using the HPPCL.DRV driver versions 3.2 and 3.2b. The following is an example: Sub MAIN SendKeys “%v {enter}”, - 1 FilePrinterSetup .Printer = “PCL / HP LaserJet on LPT1:”, .SETUP End Sub This macro could be incorporated into a FilePrint macro as a subroutine and saved in an envelope template.

More Information: In the following line SendKeys “%v {enter}”, - 1 the space between %v and {enter} is required to choose Envelope if the printer chosen in the driver is the Hewlett-Packard (HP) LaserJet Series II, HP LaserJet IIP, or Toshiba PageLaser12. If the printer chosen is the HP LaserJet IID, the space is not required. Any printers listed in the HPPCL drive and not mentioned above do not have Envelope as an available option.

Reference(s):

Additional reference words: w4wmacro