Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to name getprinter()
Message
 
 
À
26/02/2002 21:27:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00625509
Message ID:
00625541
Vues:
10
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform