Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for considering Aspose.
Well, I tested your scenario a bit with the attached latest version of Aspose.Cells and I was unable to reproduce the issue you mentioned. Following is my sample code and attached is the resultant file for your reference:
//Instantiate a new Workbook.
Workbook excelbook = new Workbook();
//Instantiating a "Products" DataTable object
DataTable dataTable = new DataTable("Products");
//Adding columns to the DataTable object
dataTable.Columns.Add("Product ID", typeof(Int32));
dataTable.Columns.Add("Product Name", typeof(string));
dataTable.Columns.Add("Units In Stock", typeof(Int32));
//Creating an empty row in the DataTable object
DataRow dr = dataTable.NewRow();
//Adding data to the row
dr[0] = 001;
dr[1] = "Aniseed Syrup";
dr[2] = 15;
//Adding filled row to the DataTable object
dataTable.Rows.Add(dr);
//Creating another empty row in the DataTable object
dr = dataTable.NewRow();
//Adding data to the row
dr[0] = 002;
dr[1] = "<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />Boston Crab Meat";
dr[2] = 123;
//Adding filled row to the DataTable object
dataTable.Rows.Add(dr);
excelbook.Worksheets[0].Cells.ImportDataTable(dataTable, true, 0, 0,false,false);
excelbook.Save("C:\\text.txt", FileFormatType.TabDelimited);
Please try the attached latest version of Aspose.Cells and if you still face any problem, please share your sample code and resultant file to reproduce the issue and we will check it soon.
Thank You & Best Regards,