Microsoft KB Archive/138396

= How to use the default Windows printer in Visual FoxPro =

Article ID: 138396

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional 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 Q138396



SUMMARY
The Report Writer in Visual FoxPro saves specific printer settings in the .frx file. Sometimes, a user may want the report to always print to the default Windows printer.



MORE INFORMATION
The following steps will remove specific printer settings from the report file:

  Open the report as a table: USE MYREPORT.FRX   Locate the record that holds the printer information: LOCATE FOR Objtype = 1 AND Objcode = 53   Remove the printer settings: REPLACE Tag WITH "" REPLACE Tag2 WITH "" REPLACE Expr WITH ""   Close the report table: USE 

At this point, the printer settings have been removed, and REPORT FORM will always print to the default Windows printer.

