Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about SYS(1037)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00548694
Message ID:
00549021
Vues:
17
>>George:
>>
>>Perhaps you can give me some help with using the Common Dialog control to programaticlly change a feature?
>>
>>If I call the ShowPrinter() method, navigate through the control, and change a setting, I then see that change reflected in the properties of the print driver. How can I send those same keystrokes from a program?
>>
>>I've tried
>>
KEYBOARD '{TAB}{ENTER}{TAB}{TAB}{TAB}'
>>which places me in a check box for "Flip Pages Up" in my currently selected printer. I press Spacebar and watch the checkbox change.
>>
>>When I added the Spacebar and finishing Enters to the KEYBOARD string, nothing changed. I modified the KEYBOARD string to have {LEFTMOUSE}, but that didn't work either.
>>
>>I found a workaround for this, but it is very kludgy and has generated a different set of problems.
>>
>>Any and all help is gratefully appreciated.
>>
>Rich,
>
>I'm not sure there is one. The control shows the current state of the printer and allows the user to make changes. From what I understand, you're trying to control the initial display. Is that correct?

Not quite. I'm trying to get the printer to change one of its features on the fly. There are a series of documents which print from both Word and Crystal Reports. They always print dual-sided, but all docuements can be printed in "Flip Pages Up" mode either on or off. Since the documents are printed by Word/CR, changing the FoxPro driver didn't seem to have an effect. I wanted to change the Windows driver and this control - when manually controlled - seems to do just that. But I've never been able to get the Check Box to toggle from within my program and was hoping you would have some additional advice on ways to get that to happen.

.............Rich
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform