>Does anyone know how could I programatically set the number of copies I want from a report?
>I don't want to use any print dialog for this because depending on the report it will be printed I know in advance if it will be needed two copies of this report, 3 copies of that other, etc.
>Thank you.
There is a simple way to do that:
PRINTJOB
_pcopies = Copies_Number_I_Need
REPORT form myReport.frx TO PRINTER noconsole
ENDPRINTJOB
HTH,
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison