Microsoft KB Archive/172851

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 20:54, 20 July 2020 by X010 (talk | contribs) (Text replacement - ">" to ">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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 <report> TO FILE <filename> 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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Use a table.
  2. Create a new report form called Test.
  3. From the Report Designer Menu select Report.
  4. Select Quick Report.
  5. Select either vertical or horizontal layout.
  6. Save the report.
  7. From the command line, type:

          REPORT FORM test PREVIEW
                                
  8. Observe the placement of the data elements within the detail band.
  9. From the command line, type:

          REPORT FORM test TO FILE test ASCII
                                
  10. From the command window, type:

          MODIFY FILE test.txt
                                
  11. Observe the placement of the data elements within the detail band.


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