G
Guest
Do you have to generate a huge file?
If you don't have to generate a big number of rows an elegant solution could
be to use XSL (you can have the input in XML and apply your XSL template to
export to your given format):
About XSL solution:
http://www.codeproject.com/vbscript/xml2csv.asp
http://www.stylusstudio.com/xmldev/200404/post60210.html
XSL Tutorial:
http://www.w3schools.com/xsl/
The strong point of this solution is that if you need any change in the
future on the style of the output you will have only to modify this XSL.
On the other hand if you have to manage with a lot of rows better go
manually with a loop, and write the ouput into an stream.
http://www.csharp-station.com/HowTo/ReadWriteTextFile.aspx
http://aspnet.4guysfromrolla.com/articles/072303-1.aspx
Good Luck
Braulio
/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------
If you don't have to generate a big number of rows an elegant solution could
be to use XSL (you can have the input in XML and apply your XSL template to
export to your given format):
About XSL solution:
http://www.codeproject.com/vbscript/xml2csv.asp
http://www.stylusstudio.com/xmldev/200404/post60210.html
XSL Tutorial:
http://www.w3schools.com/xsl/
The strong point of this solution is that if you need any change in the
future on the style of the output you will have only to modify this XSL.
On the other hand if you have to manage with a lot of rows better go
manually with a loop, and write the ouput into an stream.
http://www.csharp-station.com/HowTo/ReadWriteTextFile.aspx
http://aspnet.4guysfromrolla.com/articles/072303-1.aspx
Good Luck
Braulio
/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------