David,
Are you talking about printing or about creating a text file? These are
two different things in .NET. For printing you will be drawing information
on a set of pages to be sent to the printer. To create a text file you will
be using System.IO to write strings to a file.
To put a dataset to a text file I would iterate through the tables
putting a header out for each table followed by a set of column headers for
each column. Then iterate through the rows using either the raw DataTable
or a DataView with sorting that you would like and write each row to the
text file using a matching format for the column headers.
Ron Allen
"David" <dm*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Call me thick, but I am still having a problem with the Print Concept.
It just never came up.
What I guess I need, is a step by step explination starting with a
dataset, and ending with a text document written to the hard drive. I have looked
at alot of sample code, and I get each piece, but I don't know how to put
them together.
If anyone can point me in the right direction, or has seen such an example
in a book, please let me know.
Thank You,
David