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

Printing Memo Fields?

Status
Not open for further replies.

SpeedDemon

Programmer
Jan 1, 2001
70
GB
Hi, when printing a memo field to a printer using the Canvas.Textout() funtion, the line returns are replaced by 2 strange characters (They print as little boxes).

Is there a funtion I can run the memo text though that will make each line print on a new line or do I need to code a procedure that will search for these little box type characters that represent a new line.

If so, anyonw know what the ascii code for those ittle line return things are???

Cheers all,
Taz.
 
I think you're looking for #13 for carriage return
Steve
 
Whoops I forgot to mention that that is the windows return.
The *nix return is #10. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Hi,

why donn't you use a Trichedit component, It has a methode print. It has the same functionality as a Tmemo.

Richedit1.Print('');

It prints everything to the selected printer.

Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top