Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBPRINTER
Message
 
 
To
30/06/2001 05:35:36
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00525554
Message ID:
00525616
Views:
19
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform