Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASCII FILE FROM REPORT FORM INCORREECT 1

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
If PRT_DEST = FILE_REP
gcDelimName = 'CLISUM.TXT'
gcDelimFile = PUTFILE('Delimited file:', ;
gcDelimName, 'TXT')
Endif
REPORT FORM clsum1g ;
FOR !EOF('card') ;
NOCONSOLE NOEJECT ;
TO FILE (gcDelimFile) ASCII

Should I print the above Form or View it there are no problems. However when the Form is wrote to a text file end parts of words will be missing and lines will be wrapped. I believe this is to do with the Font size. If so how do I alter the Font size. Or is there a different solution. Thanks.
 
If you are going to write a report out to an ASCII file, then you should design the report with a non-proportional font for all the fields. I normally use Courier New.

If you are going to run the "same" report to both an ASCII file and to the printer, then either both should use this font, or you can build a separate report just for printing (so it "looks" better).

Rick
 
PMFJI, but to alleviate the columns being truncated, increase the value of the _ASCIICOLS system variable.

_ASCIICOLS = 200
REPORT FORM clsum1g TO FILE (gcDelimFile) ASCII

However, following Rick's advice will yield better control over the appearance/alignment of the output. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top