|
-
Jan 16th, 2000, 02:07 AM
#1
Thread Starter
New Member
does anyone know how to save the data underneath 'all' the column headers in report view to an external data file?
I want the data in the file to look like:
"title","author" etc
-
Jan 16th, 2000, 08:55 PM
#2
Here is an example that prints all the data. You can easily chage it so it prints the sText to a file instead:
Dim itmX As ListItem
Dim i%, iSubItemsCount%
Dim sText As String
For Each itmX In ListView1.ListItems()
sText = itmX.Text
iSubItemsCount = ListView1.ColumnHeaders.Count
For i = 1 To iSubItemsCount - 1
sText = sText & ", " & itmX.SubItems(i)
Next
Printer.Print sText
Next
Printer.EndDoc
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|