We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can convert Footer part from WordML to Html

Hi guys,

I have question : How can convert a part of WordML to Html ?.
Please help me see example in attachment file . This is footer of Word.

Thanks,
Quan Truong

Hi Quan,

Thanks for your inquiry. Node.ToString method (SaveFormat) exports the content of the node into a string in the specified format. Following code example shows how to export the content of a node to string in HTML format using default options.

Document doc = new Document(MyDir + "Document.doc");
// Extract the last paragraph in the document to convert to HTML.
Node node = doc.LastSection.Body.LastParagraph;
// When ToString is called using the SaveFormat overload then conversion is executed using default save options. 
// When saving to HTML using default options the following settings are set:
// ExportImagesAsBase64 = true
// CssStyleSheetType = CssStyleSheetType.Inline
// ExportFontResources = false
string nodeAsHtml = node.ToString(SaveFormat.Html);

Thanks for your response. Currently, My application using Aspose Word version 10.0.0. So, It doesn’t support function node.ToString(SaveFormat.Html). How to implement it in this version?
Thanks,
Quan Truong

Hi Quan,

Thanks for your inquiry. This feature is not available in older version of Aspose.Words. Please use Aspose.Words for .NET 14.11.0 and let us know if you have any more queries.