Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy that
Message
De
20/01/2016 17:33:57
 
 
À
19/01/2016 17:14:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01629953
Message ID:
01630006
Vues:
113
>Hi All,
>
>Is there a way to capture the no. of copies from the System.Windows.Controls.PrintDialog object? That particular property is not listed in its PEMs.
>I want to print a series of reports, up to 10, but I don't want to force the user into the print dialogue box for each one. So in the event the user wants >1 copy, I'd like to capture the no. of copies value from the first one, and then apply it to the others.
>Also, can someone give me the correct syntax to launch System.Windows.Controls.PrintDialog() from VFP?
>Thanks.
>
>Luke

Hi Luke:

I've not tested it, but I think that you can query the Spooler object using WMI, something like this example (in this case is used to get the number of jobs, but may be a property or method to get copies of a job):

https://www.berezniker.com/content/pages/visual-foxpro/get-number-jobs-print-queue

Best Regards.-
Fernando D. Bozzo
Madrid / Spain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform