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

HOW TO PRINT CONTENTS OF A LISTBOX

Status
Not open for further replies.

opSpy

Programmer
May 18, 2002
18
DE
I am adding from a combo, items to a list.

I want to print a receipt, how do i print the list.
 
It should work, its very basic



For X = 0 to ComboName.Listcount-1
ComboName.Listindex = X
Printer.Print ComboName.Text
Next

Printer.EndDoc

Have not tried it but sure it will do something
You might want to make the combo visible=false while you are running the code to make it faster, and not see the combo box cycling through its contents. Give it a try, and shoutback, someone may give a better way of doing it.
 
Sorry, I read afterwards to are doing it from a list, then put the name of the list where I put ComboName
 
Thanks, lots of help.

much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top