Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VBPRINTER
Message
 
 
À
30/06/2001 05:35:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00525554
Message ID:
00525616
Vues:
20
>Hi
>
>Yes, but I have not been able to make it work with a report.
>
< SNIP

You can do it in VFP
* open report as table
USE (Myeport.frx)
* Make temp copy
COPY TO ReportFRX
* open temp copy for modificaton
USE (ReportFRX.frx)
* set copies to 2
lcExpr = "COPIES=2"
Check if orientation is specified
lnOrientation = ATC("ORIENTATION", ReportFRX.Expr)
IF lnOrientation > 0
   * preserve orientation
   lcExpr = lcExpr + CHR(13) + CHR(10) + ;
          "ORIENTATION" +    SUBSTR(ReportFRX.Expr, ;
                                        lnOrientation + 11, 02)
ENDIF

... Check for other options
* Clear Tag, Tag2 and update Expr
REPLACE ReportFRX.Expr WITH lcExpr, ;
              ReportFRX.TAG  WITH "", ;
              ReportFRX.TAG2 WITH ""

USE IN ReportFRX
                  
* Print report from temp copy 
report form ReportFRX to printer noconsole
To find valid values for print option create test report with different options and analize Expr field of the first record of FRX file.
>
>
>Any Ideas how to tell FoxPro report that i will like to use a particuler Device Context (hDC).

There is no way to do that.

>
>thank you
>
>Romer
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform