Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Setup Dialog Box 1

Status
Not open for further replies.

WIREMESH

Programmer
Joined
Mar 15, 2004
Messages
109
Location
US
We have a user in Australia that wants the default VFP Page Setup Dialog Box Form to default the Paper Size to "A4" rather than "Letter". How can this be done?
 
Wiremesh,

This is a Windows issue rather than a VFP issue. Essentially, you need to tell him to go into the printer's properties and change the default paper size there. VFP will respect that setting.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 

Mike, not 100% sure, but I suspect that this became an issue at all because the reports were created in USA, and the printer settings (like PAPERSIZE=1 for letter size) already saved in the .FRX itself.

Wouldn’t the report, every time it is run, reset itself to the Letter size?

Probably, the .FRX should be hacked and the PAPERSIZE setting either removed at all or replaced with correct one before setting the properties of the printer for it to take effect.

WIREMESH, if setting the properties of the printer alone doesn’t help, then try first to strip the report of the saved printer settings. See this: faq184-581 (change it to suit your needs). Can be done manually, too. Just open your .FRX report file as you would a table (which it is), find a record where Objtype is 1 and the Objcode is 53 (usually the first record) and delete the contents of Memo fields Expr, Tag and Tag2. Save the file and send both, .FRX and .FRT, to your client. Then set the printer to the papersize you need and run the report as usual.
 
Stella,

You may well be right.

Wiremesh,

If Stella's right, if you are using VFP 8.0 or below, follow her advice. If you are using 9.0, open the report in the report designer, make sure that the Printer Environment option (on the Report menu) is clear (no tick against it), and save the report. Do this instead of what Stella suggested.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 

...make sure that the Printer Environment option (on the Report menu) is clear (no tick against it), and save the report.
It all is made so easy in v.9. Too bad we don't seem to get it any time soon. Oh well.
 
It is in VFP8 as well. You can check/uncheck Report Environment.

Watch out for VFP9 bug, though, when changing font settings. The report environment may become checked by itself.
 

It is in VFP8 as well. You can check/uncheck Report Environment.
Possibly. We still have VFP6.
 
Where can a list of PAPERSIZE be found?
e.g. PAPERSIZE=1 is USW letter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top