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

Headings for report

Status
Not open for further replies.

mogura

Programmer
Sep 6, 2003
22
GB
Hi,

I have a 26 digit string written to a textfile using streamwriter. I now wish to use streamreader to display the string using the substring method, so that the first 4 digits are listed under the heading 'Product Code', the next 2 digits listed under the heading 'Type' and so on. This report will be written to a rich textbox when the 'Daily Report' button is clicked on the form. How do I write the headings and set the spaces so that that each value appears neatly under its heading?

Can you help?
 
I'd write them into a DataTable then bind that table to a DataGrid (or another similar control).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top