Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WordPerfect Macros

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I wonder if any one has any info/code on how to create a Macro which accesses the Printer Drivers Properties.

The problem I have is that Wordperects own Duplex features does not work on my Ricoh Printer, I have to go to the Default Printer Driver properties to enable Doubles sided features, this means that any thing I print will be double sided (unless I keep changing the default Printer Properties). I need the ability to turn the Double Sided features on and off using a Macro if at all possible?????

Regards,


MrB
 
Here is a little macro that will do what you want in WordPerfect 8. It should also work in WordPerfect 7 and 9.

Application (WordPerfect; "WordPerfect"; Default!; "EN")
Display(On!)
InhibitInput(Off!)
SendKeys("{ctrl+p}{alt+o}{alt+o}{alt+l}{enter}{alt+a}{enter}{enter}")
SendKeys("{ctrl+p}{alt+o}{alt+o}{alt+n}{enter}{alt+a}{enter}{alt+c}")

This macro will enter the print menu and modify the properties of the currently selected printer. The first SendKeys line changes the printer to duplex printing along long edge of the paper with the alt+l command. The last {enter} on the first SendKeys line tells WordPerfect to print the document.

The second SendKeys line turns off the duplex printing in the printer properties. The {alt+c} command at the end of the second SendKeys line closes the print dialog box without causing WordPerfect to print.

You may need to experiment a little with the commands to get it to go where you need to go in order to change the properties of the printer. I did this using an HP Laserjet 4si as the printer. It should be similar to the Richoh that you are using.

The keystrokes that are sent are the keystrokes that you would use to accomplish this manually without a mouse. The {ctrl+p} opens the print dialog box and the {alt+o} opens the printer properties dialog box, etc.

I hope this helps!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top