Since I found the output of "report... to file ... ascii" hard to control, I started to generate a text file with "?" and "??", and sending the resulting file to the printer with "???".
I created a class, with a main loop that processes each record, and specialized methods for group headers, page headers, etc. If you are interested, look at Download #
9991. You have to re-design each report, though.
Preview in default text editor, default browser, and output to Excel are also supported.
HTH, Hilmar.
>Good Afternoon,
>
>I have a fairly simple report that I would like to print to a file that I could view to verify the results with a system I am updating to VFP6.
>
>If I send the report to a text file the amounts get truncated for some reason when I do the following. If I do the following sequence the report looks correct and I don't care how it would print because this is to avoid the printing of the results until the system is completed.
>
>_ASCIICOLS = 300
>_ASCIIROWS = 60
>REPORT FORM AccountBalances.frx to FILE AcctBal.txt ASCII
>
>If I do the following sequence the report looks correct and I don't care how it would print because this is to avoid the printing of the results until the system is completed.
>
>_ASCIICOLS = 300
>_ASCIIROWS = 60
>menu commands File | Save As AccountBalances.htm and have the page display it looks correct .
>
>Is there a way to create this html file from the command window and within a method in the project.
>
>Thanks,
>
>Michael
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)