We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 527cde3 commit 8b449afCopy full SHA for 8b449af
Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Program.cs
@@ -24,6 +24,8 @@
24
bookmarkNavigator.MoveToBookmark("Index");
25
//Replace the bookmark content with the converted HTML content.
26
bookmarkNavigator.ReplaceContent(htmlDocumentPart);
27
+ //Close htmlDocumentPart.
28
+ htmlDocumentPart.Close();
29
//Save the modified document to a specified file path in DOCX format.
30
using (FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.docx"), FileMode.Create, FileAccess.Write))
31
{
0 commit comments