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

Printing

Status
Not open for further replies.

Sherak

Programmer
Sep 1, 2003
83
GB
Hey Ive not posted in here for ages and here I am again 2 in 2 days :p, I must reply to some, share and share alike so im told ;)

Anyway hope someone can help, it is possible to print the contents of a ListBox. If not how simple is it to print the contents of a text file.

I have been using Borland for 3 years now and this the first time I have had a project that required printing.

Anyho thanks in advance.

 
I don't know how exactly you wanna print.
But I suggest using the quick reports components, its lets you see a preview of the list you wan to print.

I mean, do you has a ListBox ok? then the list is a Instance of the TString class, which can be assigned to a QRMemo easily

--- LastCyborg ---
 
You could always cheat if you are in a hurry and want a quick and dirty approach. :) Place a TRichEdit on the form, make it invisible. Transfer the contents of the listbox to the TRichEdit however you would like. Then call RichEdit1->Print();

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top