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

how can I get the name of my printers installed?

I have a listbox and I would like to list all printers that I have installed in my computer.

How can I do this ?

Thanks
0
hidrau
Asked:
hidrau
1 Solution
 
HypoCommented:
First add Printers to your uses clause, then you can use this code:

procedure TForm1.Button1Click(Sender: TObject);
begin
  ListBox1.Items.Assign(Printer.Printers);
end;

regards
Hypo
0
 
hidrauAuthor Commented:
thanks very much
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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