Microsoft KB Archive/171266: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 48: Line 48:
== SYMPTOMS ==
== SYMPTOMS ==


In Visual FoxPro, issuing a &quot;REPORT FORM TO FILE&quot; command sends the contents of the report to a file with the selected printer driver's control codes. The file can then be copied to the selected printer. With WinFax (version 8.0) selected as the printer, issuing a &quot;REPORT FORM TO FILE&quot; command behaves the same if REPORT FORM to PRINTER. Rather than going to a file, WinFax is launched and the report is sent as a fax.<br />
In Visual FoxPro, issuing a "REPORT FORM TO FILE" command sends the contents of the report to a file with the selected printer driver's control codes. The file can then be copied to the selected printer. With WinFax (version 8.0) selected as the printer, issuing a "REPORT FORM TO FILE" command behaves the same if REPORT FORM to PRINTER. Rather than going to a file, WinFax is launched and the report is sent as a fax.<br />
<br />
<br />
'''Note''' This problem does not seem to occur with Visual FoxPro 7.0, 8.0, and 9.0 when using WinFax Pro 10.
'''Note''' This problem does not seem to occur with Visual FoxPro 7.0, 8.0, and 9.0 when using WinFax Pro 10.
Line 61: Line 61:
<ol>
<ol>
<li>Install WinFax 8.0. WinFax should appear as a Printer option.</li>
<li>Install WinFax 8.0. WinFax should appear as a Printer option.</li>
<li>In Visual FoxPro, create and save a report as &quot;FAXTEST.&quot; Select &quot;WinFax&quot; as the printer from the File, Page Setup menu option.</li>
<li>In Visual FoxPro, create and save a report as "FAXTEST." Select "WinFax" as the printer from the File, Page Setup menu option.</li>
<li><p>From the Command window, issue the following code: <span class="kbd userinput"> </span></p>
<li><p>From the Command window, issue the following code: <span class="kbd userinput"> </span></p>
<pre class="codesample">      REPORT FORM faxtest TO FILE test.fax
<pre class="codesample">      REPORT FORM faxtest TO FILE test.fax

Latest revision as of 11:07, 21 July 2020

Knowledge Base


The “REPORT FORM TO FILE” command launches a WinFax application in Visual FoxPro for Windows

Article ID: 171266

Article Last Modified on 2/16/2005



APPLIES TO

  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 3.0b Standard Edition
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 5.0a
  • Microsoft Visual FoxPro 6.0 Professional Edition



This article was previously published under Q171266

SYMPTOMS

In Visual FoxPro, issuing a "REPORT FORM TO FILE" command sends the contents of the report to a file with the selected printer driver's control codes. The file can then be copied to the selected printer. With WinFax (version 8.0) selected as the printer, issuing a "REPORT FORM TO FILE" command behaves the same if REPORT FORM to PRINTER. Rather than going to a file, WinFax is launched and the report is sent as a fax.

Note This problem does not seem to occur with Visual FoxPro 7.0, 8.0, and 9.0 when using WinFax Pro 10.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Install WinFax 8.0. WinFax should appear as a Printer option.
  2. In Visual FoxPro, create and save a report as "FAXTEST." Select "WinFax" as the printer from the File, Page Setup menu option.
  3. From the Command window, issue the following code:

          REPORT FORM faxtest TO FILE test.fax
                                

The WinFax application starts and proceeds to process the report as if it had been sent to PRINTER rather than send the report to a file.

Keywords: kbprb KB171266