Hello, theres
I’m using Aspose.cells to generate excel. some report view as html looks great, but some doesn’t.
It will appear some unexpected tag below the sheets like the picture
I’m using version 7.4.2, how to avoid this issue on html, any idea ?
Regards,
agichen
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Please provide us your source file which you are converting to html and the source code replicating this issue with the latest version: Aspose.Cells
for .NET v7.4.3.3. We will look into your issue and help or advise you asap.
Hi, Shakeel
- I define htmloutput in web.config
- using aspose.dll to generate workbook.
- finally, save as html and redirect to that htm file.
Any better approach to achieve html preview excel on web ?
If there’s any better way to do this, please provide some sample code.
My code looks like follows:
string sHtmlOutput = ConfigUtil.GetValue(“HtmlOutputFolder”, “HtmlOutput”);
string sMyGuid = Guid.NewGuid().ToString();
string sfilepath = string.Format(@"{0}{1}{2}", sHtmlOutput, _rptID, sMyGuid);
string swebfilepath = string.Format(@"/{0}/{1}/{2}", sHtmlOutput, _rptID, sMyGuid);
workbook.Save(System.Web.Hosting.HostingEnvironment.MapPath("~") + sfilepath, SaveFormat.Html);
Response.Redirect("~" + swebfilepath + “.htm”, false);
Regards,
agichen
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Your approach is right, if you face any issue in your html output, then please provide us your source file and sample code project replicating the issue with the latest version. We will check it and save it to html and see the issue at our end.