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.

Tue Apr 19, 2016 5:50 am

Hi,

I am having problem with converting to DBF attached xml file. The xmlfile came from a .Net dataset using DataSet.WriteXml. Below code:

DataSet dt = new DataSet();
dt.ReadXml("test.xml"); //attached file
dbfExport1.DataSource = Spire.DataExport.Common.ExportSource.DataTable;
dbfExport1.DataTable = dt.Tables[0];
dbfExport1.FileName = "test.dbf";
dbfExport1.SaveToFile();

The error is: Client found response content type of "text/html" but expected "text/xml". The request failed with the error: Parse Error.

The same program is working when tested on the datatable with 5000 rows.

Thank you!
Attachments
test.zip
sample file for export
(1.5 MiB) Downloaded 679 times

arlandeluta
 
Posts: 2
Joined: Fri Mar 29, 2013 6:29 am

Tue Apr 19, 2016 7:36 am

Hello,

Thanks for your feedback.
I tested your xml file with your code and the latest version Spire.DataExport for .NET (Hot Fix) Version: 3.5.10. It was converted to DBF successfully. Please try the version. In addition, the generated DBF file only can show the forty rows of data without applying a license.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Thu Apr 21, 2016 7:57 am

Hi,

Did you try the version? Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Return to Spire.DataExport