Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count copies
Message
 
 
To
07/01/2003 11:46:18
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00738787
Message ID:
00738892
Views:
23
Hey,

That's cheating :)

What if the report is sent to the printer by

REPORT FORM myInvoice TO PRINTER PROMPT PREVIEW? and the user specifies the number of copies in the printer dialog?

And moreover, two invoices were printed fine, but then printer got jammed and had to be restarted?


>Norman,
>
>When the user presses the print button, you can execute code similar to the following. You simply put the field lcCopy on the report where you want it to print. You can have another button that calls a print preview, you need to set lcCopy to some value (such as "Preview") there also.
>
>
>* set printer to name ...
>lcCopy = "Original"
>report form invoice to print noconsole
>lcCopy = "Copy 1"
>report form invoice to print noconsole
>lcCopy = "Copy 2"
>report form invoice to print noconsole
>
>
>>Hi all, I need to control the amount of copies printer for an invoice, but have not figured this out. I have a normal report to print an invoice, the first time I print it It should tell its original, the second time "copy 1" the third "copy 2" etc.
>>
>>The source of the report is a SQL query that joins master and detail of the invoice, does anyone has done this before. What is the best approach. Note that I need to increment the index on the copy only if printed, this means that if I see the report in preview (screen) it should not affect that counting.
>>
>>Thanks
>>
>>Norman
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform