Skip to content

Commit 7e07be5

Browse files
committed
Modified the code snippet
1 parent 46723e8 commit 7e07be5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Bookmarks/Add-bookmarks-to-all-paragraphs-and-retrieve-contents/.NET/Add-bookmarks-to-all-paragraphs-and-retrieve-contents

Bookmarks/Add-bookmarks-to-all-paragraphs-and-retrieve-contents/.NET/Add-bookmarks-to-all-paragraphs-and-retrieve-contents/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static Dictionary<string, string> GetBookmarkContents(WordDocument docum
5656
// Get the text content and add it to the dictionary
5757
bookmarkContents.Add(currentBookmark.Name, tempDoc.GetText());
5858
// Save the Word document.
59-
tempDoc.Save(Path.GetFullPath("Output/Output_" + paragraphCount + ".docx"));
59+
tempDoc.Save(Path.GetFullPath("../../../Output/Output_" + paragraphCount + ".docx"));
6060
// Close the temporary document.
6161
tempDoc.Close();
6262
paragraphCount++;

0 commit comments

Comments
 (0)