We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exporting Html cell data to Datatable

Is there a method currently that will operated similar to the ExportDataTable or ExportDataTableAsString methods, except return the HtmlString values?


Hi,


Thanks for your posting and considering Aspose.Cells.

We are afraid, the feature request by you is not supported at the moment, so we have logged it as a New Feature request (ticket id is given below) in our database for implementation. We will add ExportTableOptions.ExportAsHtmlString to fulfill your needs.

  • CELLSNET-45327 - Support Exporting Html Cell Data to DataTable

Hi,

Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSNET-45327 now. We will soon provide the fix after performing QA and including other enhancements and fixes.
Hi,

Thanks for using Aspose.Cells.

Please download and try the following latest fix

Aspose.Cells for .NET v17.4.5 (.NET 2.0) compiled in .NET Framework 2.0.
Aspose.Cells for .NET v17.4.5 (.NET 4.0) compiled in .NET Framework 4.0.

and let us know your feedback.
We have added ExportTableOptions.ExportAsHtmlString property in this fix to fulfill your needs.

Here is a sample code for your reference.

C#
ExportTableOptions etOpt = new ExportTableOptions();
etOpt.ExportColumnName = false;
etOpt.ExportAsHtmlString = true;
DataTable dt = workbook.Worksheets[0].Cells.ExportDataTable(0, 0, 2, 1, etOpt);

The issues you have found earlier (filed as CELLSNET-45327) have been fixed in Aspose.Cells for .NET 17.5.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.