Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the PAPERSIZE and ORIENTATION at runtime
Message
From
10/09/1999 22:18:57
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00263466
Message ID:
00263591
Views:
23
>>When printing a report I am using various laser printers, deskjet printers and dot matrix lineprinters. The reports have been designed for standard 8 1/2 by 11 incha paper on an HP4000 but when I want to use the dot matrix lineprinter I have to change the PARERSIZE to 39 and ORIENTATION to 1 in the EXPR field of the FRX. To make this dynamic, is there a way to change this without copying the FRX to a temporary file modifying the field then executing the modified file? Is there some printer object that has a papersize and orientation property?
>
>There is no printer object. I personally just check what printer is selected for output, then USE myreport.frx and replace EXPR field with necessary parameters without copying it to temporary file.
>
>Nick



Nick, there is a Need to copy the report frx to temp folder and edit it!
because there may be another user use the SAME report to another printer.

There will be an access error as more than one cursor need to update the same record! (1st record of report)

Michael, if you don't want to edit the report at run-time, you need to:

make 2 folder for different printer report,
i.e. HPRpt\ and DotRpt\

You first make 2 copies of reports and editing the corresponding expr at first record..
Call a prg to do as if a DOS patch!
Don't copy them manual as you may miss some!!



It will really SAVE Run-time Copy-file and editing record!

Of cos, the actual task is still done on editing expr of 1st record +_+




You may put it at Wish list that VFP can follow the SYS(1037) setting at run-time without
editing the expr!!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform