How do I print out a listbox that contains a single column of items?
Print listbox in c#
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Jan 4, 2010, 7:45 PM EST
I wrote a simple example for you. It will show how to print list box items.
Download my code.
Please do not forget to tick 'Do you like this answer' checkbox, if my answer helps you.
Brad Bucholz12 reputationPosted Jan 4, 2010, 5:53 AM EST
Thanks,
Brad
paul daniel189 reputationPosted Jan 5, 2010, 2:45 AM EST
Hi
Try this Code:For i = 0 To List1.ListCount - 1
Printer.Print List1.List(i)
Next i
Printer.EndDoc
Thanks,
Paul daniel
Brad Bucholz12 reputationPosted Jan 5, 2010, 5:58 AM EST
Thanks,
Brad