Spire.DataExport for .NET is a 100% pure data .NET library suit for exporting data into MS Word, Excel, RTF, Access, PDF, XPS, HTML, XML, Text, CSV, DBF, SYLK, SQL Script, DIF, Clipboard, etc.

Thu May 19, 2011 4:16 pm

Hi,

when i try to save a export specification to file, it throws an exception "ArgumentOutOfRangeException".

My Code is:

Dim txtExport1 As New Spire.DataExport.TXT.TXTExport()

txtExport1.DataSource = Spire.DataExport.Common.ExportSource.DataTable
txtExport1.DataEncoding = Spire.DataExport.Common.EncodingType.ASCII
txtExport1.ExportType = Spire.DataExport.TXT.TextExportType.CSV

txtExport1.SaveSpecificationToFile("C:\test.txt")

Thank you very much!

joerg.ackermann2
 
Posts: 1
Joined: Tue Mar 22, 2011 8:48 am

Tue May 24, 2011 9:25 am

Dear joerg.ackermann2 ,
Thanks for your inqury.
You can use this method.
Code: Select all
txtExport1.SaveToFile("C:\test.txt");

The SaveSpecificationToFile() method can not work.
Justin
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Return to Spire.DataExport