Home > Net >  Using Aspose. Cells will excel to HTML times is wrong
Using Aspose. Cells will excel to HTML times is wrong

Time:03-02

The source code is as follows:
 Workbook wb=new Workbook (filePath); 
WorkbookDesigner designer=new WorkbookDesigner (wb);

HtmlSaveOptions options=new HtmlSaveOptions (Aspose. Cells. SaveFormat. Html);
Options. CreateDirectory=false;
Options. ExportDocumentProperties=false;//indicates whether export document properties
Options. ExportWorkbookProperties=false;//indicates whether export workbook attribute
Options. ExportWorksheetProperties=false;//indicates whether export work table properties
Options. IsExportComments=false;//instructions on whether to save the file to the HTML export annotation

Options. ExportSimilarBorderStyle=true;
Options. ExportImagesAsBase64=true;
Options. ExcludeUnusedStyles=true;
Options. ExportHiddenWorksheet=false;
Options. PresentationPreference=true;

Wb. CalculateFormula ();
Wb. Save (outFilePath, options);


This code on my own computer operation no problem, but the published to the server, run to wb. Save (outFilePath, options); , will be submitted to the "attempt to read or write protected memory, this usually indicates other memory has been damaged," mistake, consult each great god help look at the problem out there,
  • Related