PDA

Click to See Complete Forum and Search --> : Printing info in a file list box....


Dan0331
Dec 16th, 1999, 10:56 PM
What is the best way to print the information located in a File List Box?

I know how to print regular documents, but I'm unclear how to print the info in the list box.

Thanks!

smalig
Dec 17th, 1999, 11:01 AM
Try it:

Dim lx&, cx&
Dim FileName$

cx = File1.ListCount - 1

For lx = 0 To cx
FileName = File1.List(lx)
Printer.Print FileName
Next


------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/

Dan0331
Dec 17th, 1999, 11:04 AM
Thanks smalig!

I imagine this goes in the code for the Print_click event?

smalig
Dec 17th, 1999, 11:07 AM
Sure!

------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/