Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set printer to name getprinter()
Message
 
 
To
26/02/2002 21:27:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00625509
Message ID:
00625541
Views:
12
>Thanks, I had forgot about that.
>
>Also, is there any way to set number of copies in a report at run time. I even tried setting a report variable of _pcopies = 2 but that did not work.

There's a hint how to do that in the faq a pointed you to. :)
* Open report as a table and make temp copy
lcCopies = "COPIES=2" 
lcTempRepName = < temp file name >
SELECT 0
USE myReport.frx 
COPY TO (lcTempRepName) 
USE 
* Replace number of copies in the copy of report
USE (lcTempRepName) 
* Assumes that "COPIES=1" is default value in Expr.
REPLACE expr with STRTRAN(expr, "COPIES=1", lcCopies ) 
USE
* Run the report from temp copy
USE ReportCursor
REPORT FORM (lcTempRepName ) ...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform