Hi,
We upgraded the Aspose.Words.dll from version 9.1.0.0 to version 9.5.0.0
We now can't compile the following code. The SaveOptions have changed and i can't seem to set the properties HtmlExportXhtmlTransitional and HtmlExportCssStyleSheetType when saving to HTML.
Example code:
Document f_Document = new Document();
//do some stuff with the document
//Method 1 // Previous working method use in v9.1.0.0
f_Document.SaveOptions.HtmlExportXhtmlTransitional = true;
f_Document.SaveOptions.HtmlExportCssStyleSheetType = Aspose.Words.Saving.CssStyleSheetType.Embedded;
f_Document.Save(m_TargetDocumentHtml, SaveFormat.Html);
//Method 2 // How to be used in v9.5.0.0 ???
Aspose.Words.Saving.SaveOptions saveOptions;
saveOptions = Aspose.Words.Saving.SaveOptions.CreateSaveOptions(SaveFormat.Html);
saveOptions. //Doesnt contain HtmlExportXhtmlTransitional or HtmlExportCssStyleSheetType
f_Document.Save(m_TargetDocumentHtml, saveOptions);
Please how do i set the saveoptions HtmlExportXhtmlTransitional and HtmlExportCssStyleSheetType ??
Please advice. Thanks in advance.
Jan Stolk