Microsoft KB Archive/136620

= Benefit of storing printer information in a report table (.FRX file) =

Article ID: 136620

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q136620



SUMMARY
This article explains the benefit of storing printer information in the Report table (.frx file).



MORE INFORMATION
In FoxPro version 2.x, printer information is stored as binary format in the Tag and Tag2 memo fields in the .frx file. There is no easy way for the developer to change the orientation, paper size, and so on of the report once the .frx file has been created.

In Visual FoxPro, this information is now stored as text in the Expr field of the first record in the .frx file. Now, for example, if you need to change the orientation of the report from portrait to landscape, you can look for the "ORIENTATION=" setting in the first record of the Expr memo field, and change the orientation from 0 to 1.

To see what the valid values are for a specified printer setting, use the PRTINFO function. For more information about the PRTINFO function, search for PTRINFO in the Help menu.

Additional query words: VFoxWin

Keywords: KB136620

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.