Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What printer name is selected with PROMPT?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01266706
Message ID:
01266921
Vues:
14
>>>>Is it possible to find out what printer name is selected when REPORT FORM ... with PROMPT is used?
>>>
>>>I have to ask WHY you want to know which printer a report was printed to? What do you plan to do with the information after you get it?
>>
>>I have a routine which prints a report and following this report another routine sends a Word or Excel document to the printer (using Office automation). Right now, the Word or Excel document always go to the default printer. I want to direct them to the same printer where user selected to print VFP report.
>
>The best solution for this situation is to prompt the user for the printer before printing the report. Then change the default printer to that printer, print the report, and print your Word or Excel documents.

I wonder what are the downsides of using GetPrinter() vs. PROMPT? Visually I see a difference in the printer selection dialog but I am not sure if a user might complain that something is taken away by this change.

Thank you for the suggestion.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform