Microsoft KB Archive/318997

= FIX: The REPORT FORM ASCII clause does not permit white space =

Article ID: 318997

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q318997



SYMPTOMS
When you use the REPORT FORM ASCII clause in Visual FoxPro version 7.0, no white space is produced between the detail band and the page footer in the ASCII file that is created. This assumes that there is space between the detail band and the page footer on the report.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual FoxPro for Windows 7.0.

This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior
  Paste the following code in a program (.prg) file named Test, and then run the program from the Command window.

Note You may have to increase the PAUSE value in the code example if running the code on a faster computer. CLOSE TABLES ALL DELETE FILE mytest.DBF DELETE FILE myreport.fr? DELETE FILE myreport.txt

CREATE TABLE mytest (fld1 C(20), fld2 C(20)) FOR x = 1 TO 5 INSERT INTO mytest VALUES (REPLICATE(CHR(64+x),10), ;                         REPLICATE(CHR(64+x),10)) ENDFOR

CREATE REPORT myreport NOWAIT KEYBOARD &quot;{ALT+R}Q{PAUSE 1}{ENTER}&quot; ACTIVATE WINDOW 'Report Designer' KEYBOARD &quot;{CTRL+W}&quot; DOEVENTS
 * Make a quick report

REPORT FORM myreport PREVIEW REPORT FORM myreport TO FILE myreport.txt ASCII MODIFY FILE myreport.txt NOWAIT USE  After you run the program, view the Report Preview. Note that the report contains five lines of data, followed by white space, and then a date in the page footer. Close the Report Preview window, and note that the report now shows the date directly below the last line of data in the ASCII text file.

Keywords: kbbug kbfix kbvfp700sp1fix kbcodesnippet kbctrl KB318997

-

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

© Microsoft Corporation. All rights reserved.