@nguyentiep19901,
Thank you for your query. Please share the template Excel file which is used for testing at your end. We will run your sample code using the template file and share our feedback after detailed analysis.
onversion. Document is broken after copying sheets. Issue with smart markers in merged cells. Exception “ClassCastException: …” when calculating PivotTable. New Workbook with CSV file results.
This conversion was working fine for multiple sheets while using Aspose.Cells. However for single sheet workbook, there was no tab page and only HTML file was created without creating the separate folder containing CSS. Now Aspose.
See the following sample code (especially the line in bold) that I tested using my sample file for reference and try it, it would accomplish your desired task:
e.g Sample code:
Workbook wb = new Workbook(“e:\test2\Bk_test1.xlsx”);
//Specify HtmlSaveOptions
HtmlSaveOptions opts = new HtmlSaveOptions(); opts.ExportSingleTab = true;
//Save the workbook in HTML format with above HtmlSaveOptions
wb.Save(“e:\test2\outBook12.html”, opts);
Please also, find attached the template file and output Html (with resource files). files1.zip (6.3 KB)
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.