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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Condensed Printing

Status
Not open for further replies.

teknik

Programmer
Feb 27, 2001
33
IN
We are using CHR(15) programmatically to condense a report. This works fine when the entire report is to be condensed. But if a particular line of the report is to be condensed only dots are printed. In this case CHR(15) is included in the report file using a field expression.

Below is the example of the code we are using :

REPORT FORM REPORTFILE.FRX TO FILE TEMP.TXT
SET PRINTER TO NAME "Generic / Text Only"
TYPE TEMP.TXT TO PRINTER
 
Maybe try embedding the line to be condensed in font change control codes? But, I'm really not sure how to do this without hacking the frx or using Doug Hennings techniques explored in Report Objects: Finally!
I really look forward to seeing who has an answer.

Hope helps,

Darrell 'We all must do the hard bits so when we get bit we know where to bite' :)
 
Instead of TYPE Command We used the Command:
COPY FILE TEMP.TXT TO LPT1.DOS
It prints perfectly along with control characters but gives an error "Cannot Create File"
Please help!





 
Do you definitely have a printer connected to LPT1 and powered up? Unlike the windows print spooler, when sending files to LPT1.DOS the 'dos' copy expects to find a printer on the port. If there is no printer attached, and possibly also turned on, then you will receive the "Cannot Create File" error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top