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!

Generic / Text Only Printer output has extra CR/LF characters

Status
Not open for further replies.

eljainc

Programmer
Mar 23, 2004
3
US
Hello,

We have a report that was generated from a WinXP machine, using the Generic / Text Only printer driver. It is sent to a file by using FILE: as the port. When examining the contents of the report, it is noticed that some graphics characters are embedded in different places throughout the document. On closer examination they are Carriage Return(CR) and Line Feed (LF) followed by spaces. We have tried to examine this file for
a pattern of these characters.

What might be causing this behavior? How can it be made so that these characters do not appear in the file?

Is there another similar printer driver in WinXP that has just generic ASCII text output?


Thanks
Mike
 
When you print to a file, as well as the printed information it also takes the formatting settings so perhaps that is why the characters are there in the first place.

If you take or copy the file and drop it directly on a printer icon it should, or might, print the document in a readable format.


 
see if the driver has a setting that may remove these extra characters...

also take a look at the file using WordPad instead of Notepad, it handles text formatting differently...

alternatively you could use the SEARCH&REPLACE of NotePad to remove these extra characters...





Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
I ran across this on one of our printers. The printer was configured to use LF as a CR, thus two CR. I went into the printer configuration (not the driver) and changed it. You may have to look at the printer's documentation to see how to do this.

James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top