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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save Printer Environment

Status
Not open for further replies.

hjohnson

Programmer
Aug 1, 2001
90
US
Does anyone know where in the .frx that VFP stores the 'Save Printer Environment' flag. I'm upgrading to VFP9 from an earlier version and would normally just hack the frx when needed. I'd like to put something together to go through the entire project and strip the tag information from the reports and to also set them to no longer save it, but have been unable to identify where this is stored.

Thanks in advance.

Hal
 
Hi Hal,

The 'Save Printer Environment' flag is not saved in the FRX. Things that are set in the Tools->Options dialog are saved in the registry under HKEY_CURRENT-USER\Software\Microsoft\VisualFoxPro\<subfolder> In mycase the subfolder is 'environ9.0'

The key name is 'RptSavePrinterEnv'. Once you have set this flag in the Options dialog and saved it, the report environment will not be saved for any future reports. Reports saved before you set this environment setting will still contain the printer info. You want to clean out Expr, Tag and Tag2

pamela
 
While it is true that You want to clean out Expr, Tag and Tag2[/U] in the FRX file's RECNO() = 1 ONLY, you should examine if any of the Report Form's are intended to print in Landscape mode.

If so, you need to be a little more careful in 'cleaning out" the EXPR field. It also contains the Orientation setting. Merely clearing it out will lose this orientation. Instead you will need to clear out everything BUT the Orientation line.

Good Luck,
JRB-Bldr
 
Thanks for the reminder on the orientation and for information on the registry settings.

I also have a few reports with custom papersizes which will still needs to be kept.

As for the 'Save Enviroment' flag... I believe part of my confusion was that I had assumed that with the default setting in options, that merely modifying and saving would then apply the new setting. I've realized that the option to save or not on the report properties is dynamically built based on if the tag fields already contains data.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top