View mht file by http request when Aspose.Cells convert xls to mht

I convert a xls file to mht format using codes below
var cells_lic = new Aspose.Cells.License();

cells_lic.SetLicense(“Aspose.Total.lic”);
var oBook = new Aspose.Cells.Workbook(@“c:\xx.xls”);
var hso = new Aspose.Cells.HtmlSaveOptions(Aspose.Cells.SaveFormat.MHtml);
oBook.Save(@“c:\xx.xls.mht”);
It’s all nice here, and the mht file could be open and viewed correctly.

but i want this mht file could be viewed by remote ie browser, now problems come, the css style in the mht file lost.

you can have a try.

Hi Liao,


Thank you for contacting Aspose support.

Please provide us the following information/artifacts for detailed analysis,

  • Source spreadsheet
  • Resultant MHTML file
  • Aspose.Cells for .NET version being used for conversion
  • Environment details where conversion is taking place
  • Browser type & version where resultant MHTML shows problems
  • Snapshot highlighting the problematic areas
  • Details on how MHTML is sent to the remote browser

Above requested will help us quickly investigate the matter and provide a fix. However, before you move forward to provide these details, we request you to please give a try to the latest version of Aspose.Cells for .NET 8.5.1.2 on your side to see if you can still replicate the said issue.