all groups > vb.net controls > july 2005 >
You're in the

vb.net controls

group:

Generate a .CSV file


Generate a .CSV file Gaffar
7/26/2005 12:00:00 AM
vb.net controls:
Hi

In my form (windows from) 've several text boxes,lable controls and drop
down boxes and a button.
when i click on this button then the entered in all the textboxes and =
data=20
presented on label and dropdown boxes must be saved into a textfile and =
the textfile must be converted to the .CSV file.
can anybody tell me how to do this one using VB.net. please give any =
sample code.

its very urgent
Thanx in advance
Re: Generate a .CSV file Michael C#
7/28/2005 5:33:12 PM
Just save it straight to a CSV file. It would probably be easiest to =
dynamically create the Text Boxes, Label Controls and Drop Down Boxes in =
an Array object, then loop through the array. Then all you have to do =
is Open a StreamWriter and writeline the box contents in the following =
format:

"xxx", "xxx", "xxx", "xxx" ...
"xxx", "xxx", "xxx", "xxx" ...


[quoted text, click to view]
Hi

In my form (windows from) 've several text boxes,lable controls and =
drop
down boxes and a button.
when i click on this button then the entered in all the textboxes and =
data=20
presented on label and dropdown boxes must be saved into a textfile =
and the textfile must be converted to the .CSV file.
can anybody tell me how to do this one using VB.net. please give any =
sample code.

its very urgent
Thanx in advance
AddThis Social Bookmark Button