Microsoft KB Archive/172851

= BUG: REPORT FORM TO FILE ASCII adds extra carriage return and line feed characters to output file =

Article ID: 172851

Article Last Modified on 2/11/2005

-

APPLIES TO


 * 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 Q172851



SYMPTOMS
When you direct report output to an ASCII text file using the command REPORT FORM TO FILE ASCII, additional carriage return and line feed characters are inserted into the detail band of the output text file.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Use a table. Create a new report form called Test. From the Report Designer Menu select Report. Select Quick Report. Select either vertical or horizontal layout. Save the report.</li>  From the command line, type: REPORT FORM test PREVIEW </li> Observe the placement of the data elements within the detail band.</li>  From the command line, type: REPORT FORM test TO FILE test ASCII </li>  From the command window, type: MODIFY FILE test.txt </li> Observe the placement of the data elements within the detail band.</li></ol>

<div class="workaround_section">

WORKAROUND
In the Visual FoxPro Command window issue the following command: _ASCIIROWS=30 Then print the report to the file using the ASCII clause and it does not place the extra CR+LF into the text file output.

NOTE: The default for _ASCIIROWS = 63.

Additional query words: kbvfp500 kbvfp500a kbvfp600 kbvfp500bug kbvfp500abug kbvfp600bug

Keywords: kbbug KB172851

-

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

© Microsoft Corporation. All rights reserved.