• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

Printing contents of LMDListBox

I am wondering if there is an easy way to print the contents of an LMDListBox?

Thanks
0
MakkyMel
Asked:
MakkyMel
1 Solution
 
Wim ten BrinkCommented:
If it has a TStringList as Items property or whatever and you want to just print these items then yes:

uses ..., Printers;
var
  AFile:TextFile;
begin
  AssignPrn(AFile);
  Rewrite(AFile);
  Write(AFile, LMDListBox.Items.Text);
  CloseFile(AFile);
end;

Or something similar.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now