>Claude, excusez moi for bringing this older subject back, but can you suggest a way to do this and still preserve at least the orientation of the report ?. I have tried to blank TAG,TAG2, and a combination of parameters in EXPR, but nothing works.
>
>Merci beaucoup.
Hi Furio,
I'm not on the Thread often these days so excuse the delay of my reply.
This is what I do:
clear everything in TAG and TAG2 fields of the first record,
keep only desired parameters in EXPR field.
In my case, when I look at EXPR field I see something like:
DRIVER=winspool
DEVICE=\\MTRLPQBH107\HP LaserJet 5Si 2-100
OUTPUT=Ne01:
ORIENTATION=0
PAPERSIZE=1
SCALE=100
COPIES=1
DEFAULTSOURCE=15
PRINTQUALITY=600
DUPLEX=1
TTOPTION=3
From what I tried these are the settings that are used at run time even if the user selects a different printer.
For reports in portrait orientation I leave EXPR field blank. (Maybe I should force it to ORIENTATION=0)
For reports in landscape orientation I put ORIENTATION=1
Everytime you open and save a report with the report designer you must be careful to repeat these operations because it saves also your default printer settings in the EXPR field.
To ease the process I wrote a little program to reset the setting I want for each report files of my project.
USE MyReportLandsape.FRX
BLANK FIELDS EXPR,TAG,TAG2
REPLACE EXPR WITH "ORIENTATION=1"
USE MyReport.FRX
BLANK FIELDS EXPR,TAG,TAG2
...
Good luck!
Claude