Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Control
Message
From
19/06/2001 19:01:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Printer Control
Miscellaneous
Thread ID:
00521244
Message ID:
00521244
Views:
53
Sorry to be a pest about this but I feel as if I'm THIS close to a solution and can't quite manage to find the right answer.

I posted this earlier as "Controlling the Printer" and got good feedback from Yuri, but it didn't quite solve my problem.

My problem is that I need to print a set of documents. These consist of Word and Crystal Reports documents. The entire set may need to be printed several times. The "Document Options" for "Printing" and "Flip Pages Up" may need to change for each set of documents - but not from document to document within the set.

From a different source I got pointed to the "Microsoft Common Dialog Control." This apparantly gives me the ability to modify the print driver directly. I am hoping to use this control at the beginning of each set of documents to set the Document Options.

In my form method I issue the following:
KEYBOARD "{TAB}{ENTER}{TAB}{TAB}{TAB}{SPACEBAR}{ENTER}{ENTER}"
Thisform.dlgPrinterControl.ShowPrinter
I can see a printer control dialog box on the screen. I can see the focus shifting from control to control and it finally settles on the checkbox I want. However, the (SPACEBAR) does not seem to toggle the box.

If I leave the KEYBOARD command as
KEYBOARD "{TAB}{ENTER}{TAB}{TAB}{TAB}"
the focus is in the proper checkbox on the printer control dialog box. I press the spacebar and it toggles. I can then ENTER my way out of the control and get the results I need.

Can anyone suggest why the {SPACEBAR} in my KEYBOARD command does not seem to affect to dialog box? Are there alternative keystrokes I could issue which would work better?

Are there any other approaches I could use with this control?

Perhaps there is a different control entirely which works better?

My thanks to anyone who responds.........Rich
Next
Reply
Map
View

Click here to load this message in the networking platform