Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving user's choice
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01235348
Message ID:
01235525
Vues:
18
But did anyone supply a way to determine what printer the user chose to print to? I don't think it can be done if you use REPORT FORM ... TO PRINTER PROMPT. There's no way to query VFP and say "BTW, what printer did the user choose?" I was thinking maybe a Windows API call might do this, but I wouldn't know which one.

>Re: Capturing Print Dialogue Box Result Thread #644779 Message #644781
>
>>>I would use a slightly different approach. Create a table with a field to store each report name and
>a field to store the printer name (if you don't store the table locally, then perhaps a username or workstation name as well). Create a form to allow the user to select what printer each report will print to. When you print, check the table for the report and if it is found, assume that printer, if no match is found, go to the default printer (for those reports that don't require a specific printer to print to or the user has not made a selection for yet).
>>>
>>
>>Unfortunately, PROMPT clause doesn't seem to preserve the user's choice. How can I find out what was selected if I'm using PROMPT clause?
>>
>>BTW, using llPrinted idea for Preview worked fine. I now just need to either somehow reproduce the PROMPT dialog or figure out the selected printer from it.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform