>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-queueBest Regards.-
Fernando D. Bozzo
Madrid / Spain