Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing text files in landscape/portrait mode
Message
From
30/09/1998 01:38:25
 
 
To
29/09/1998 22:28:21
Teo Kock Hin
Singapore Press Holdings
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00141791
Message ID:
00142240
Views:
16
>Thank for your reply. SYS(1037) display the printer setup dialog
>and GetPrinter() display the printer dialog. Both required user
>intervention and selection.
>
>Is there some way to set the page orientation and size , etc,
>without bringing up these dialogs that requires user selection?
>
>Based on the files to be printed, the program can determined the
>orientation and size and should not require the user to choose
>these selection. And if they choose the wrong selection, the
>output may not be what it should be.
>
>Thanks.



Um... I suppose u need to edit the frx file at runtime and change the setting..
if it is multi-user use, you need to copy the frx file from common drive to User c: drive and do editting, then take c: frx version to print!!

I think you need to make a new form and ask for setting:
Then, make a Memo variable on "NewSetting"

e.g.
NewSetting = "Orientation=1" + chr(13) + "papersize=256" + chr(13) + ;
"paperlength=2550" + chr(13) + "paperwidth=2100"



set safety off && allow overwrite!
copy file myreport.fr? c:\temp\myreport.fr?
use c:\temp\myreport.frx
blank field tag, tag2 && memo field to carry printer info at 1st record!
replace expr with "&NewSetting"
use
set safety on

PrintJob
_pcopies = 1 && if more than one copy ...
_pbpage = 1 && start with first page ...
_pepage = 9999 && end page...
report form c:\temp\myreport to printer
endPrint





Hope above example can give hints to you!
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