Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prompt dialog
Message
 
 
À
29/09/2009 18:19:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01426748
Message ID:
01426756
Vues:
50
>>Hi everybody,
>>
>>Is there a way to simulate the exact Prompt dialog (with number of pages, etc.) or the GetPrinter() is the best we can have? Did someone already create this dialog so I would not need to re-invent the wheel?
>>
>>Thanks a lot in advance..
>
>You can try the common dialog I can tell you first I don't know how to work with it but maybe someone else does
>
>
>lo_printer = NEWOBJECT('MSComDlg.CommonDialog')
>
>WITH lo_printer
>   .PrinterDefault = .t.
>   .flags = 256 
>   .ShowPrinter()
>ENDWITH
>
>? set('printer', 2) && Will return the printer name
>
>
>But I don't know how to get access do the # pages they selected or anything else. I know not much of a help.

Nice, unfortunately Intellisense doesn't work here. See my reply to myself - Bob Durban's code should work for me, but how should I use its results?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform