Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to A4 paper size
Message
From
16/01/2019 11:52:33
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01665447
Message ID:
01665449
Views:
66
>Hi,
>
>My Euro customers says a forms that my app prints needs to be "adjusted" to their paper size A4. I tried printing the same form to my printer, selecting the paper size A4 and I don't see a difference. Of course, my actual paper is 8.5" by 11".
>
>What do you suggest I need to do - or emulate - their "issue"? How do you deal with this, if you have Euro customers?
>
>TAI

I create the reports in A4, to avoid that the report gets cutoff on the right side.

When printing I look at the setting (in the program the user can chose A4 or Letter size), and the update the Expr field in the frx accordingly.

The Expr field always looks like this in my reports:
ORIENTATION=0
PAPERSIZE=1
COLOR=2

Then I update the Papersize before running the report:
LOCAL lcOrientation
lcOrientation = SUBSTR(Expr,13,1)
*
LOCAL lcExpression
*-- Set papersize and orientation.
TEXT TO lcExpression TEXTMERGE NOSHOW
ORIENTATION=<<lcOrientation>>
PAPERSIZE=<<ICASE(toPreviewform.PaperSize="A4",'9',UPPER(toPreviewform.PaperSize)="LEGAL",'5','1')>>
COLOR=2
ENDTEXT
*
REPLACE Expr WITH lcExpression
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform