Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of copies in Report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00087240
Message ID:
00087760
Views:
26
>>>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.
>>Can you not issue the REPORT FORM as many times as you want in your app?
>>
>>For i = 1 TO 3
>> REPORT FORM...
>>NEXT i
>>
>>Now that I think of it... you could actually store the value in a table and make a reference to it at print time. That way, you could change the value in the table if you want to increase or decrease your output.
>>
>>PROCEDURE PrintIt
>>PARAMETERS pcFRXName
>>
>>IF SEEK(pcFRXName, 'FRXCOUNT')
>> lnCount = FRXCOUNT.numprint
>>ELSE
>> lnCount = 1
>>ENDIF
>>FOR i = 1 TO lnCount
>> REPORT FORM (pcFRXNAME) .....
>>NEXT i
>>
>>RETURN
>>
>>
>>
>>WAYNE
>
>Thank you for answering but the problem with your suggestion is that it will take twice or three times the time of preparing the printing before it send it to the printer.
>
>Eduardo
Why would it take any longer? You should already have the report set to print. All you are doing is sending it multiple times.

Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform