Hi,
Hi,
Hi,
Hi,
Hi,
file to an Excel XLSX file would overwrite the existing formatting
(background color etc.). I used the following sample code, I used a
simple template Excel file that would import a simple CSV file (which
contains one datetime value), both files are attached here:
e.g
Sample code:
var workbook = new Workbook("e:\\test2\\BkDateConversion1.xlsx");
Worksheet ws = workbook.Worksheets[0];
var txtLoadOpts = new TxtLoadOptions(LoadFormat.CSV)
{
ConvertDateTimeData = true,
ConvertNumericData = true,
KeepExactFormat = false,
};
ws.Cells.ImportCSV("e:\\test2\\test.txt", txtLoadOpts, 0, 0);
workbook.Save("e:\\test2\\out1.xlsx");
Hi,
have fixed the formatting issue in importing CSV. For
Cells.ImportTwoDimensionArray, we add an override method
Cells.ImportTwoDimensionArray(object[,] objArray,object[,] styles, int
firstRow, int firstColumn, TxtLoadOptions opts), with TxtLoadOptions, you can specify: ConvertNumericData/ConvertDateTimeData/KeepExactFormat properties by instantiating its object to get the
expected results.
Thank you.
The issues you have found earlier (filed as CELLSNET-43298;CELLSNET-43282) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan