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

Print List View

Status
Not open for further replies.

ITphile

IS-IT--Management
Nov 27, 2001
51
0
0
IN
Dear All,

Happy New Year 2002!

I'd like to print the text displayed in the List View as such. pl. advice me as to how to go about it.Some code to start with will be more helpful.


Thanx in advance



 
Hi ITphile

If by List View you mean a Drive/Dir/FileListBox

Dim intCt As Integer
For intCt = 0 To File1.ListCount - 1
Printer.Print File1.List(intCt)
Next
Printer.EndDoc

Jon
 
If your ListView is from a recordset, then keep in mind you might to use

recordSetName.MoveFirst

Do Until (intCounter > recordSetName.RecordCount
Printer.Print yourField_or_Fileds
recordSetName.MoveNext
intCounter = intCounter + 1
Loop
Printer.EndDoc

Hope this helps.

~Troy
 
Hi Jon and Troy,

Thanx for the posting.

Jon it is not files and dir as is displayed in the "Find"options in Windows. It is a custom made List View which shows something like Name (First Middle Last), Address, City, Zipcode etc.,


Troy thanx for the help

ItPhile

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top