File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Mail-Merge/Replace-merge-field-with-html-image/Replace-merge-field-with-html-image Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ void InsertHtml()
9090 int index = valuePair . Key ;
9191 string fieldValue = valuePair . Value ;
9292
93- //Subscribe the ImageNodeVisited event to resolve images within HTML content.
93+ //Hook the ImageNodeVisited event to resolve images within HTML content.
9494 paragraph . Document . HTMLImportSettings . ImageNodeVisited += OpenImage ;
9595
9696 //Inserts an HTML string at the same position of mergefield in a Word document.
9797 paragraph . OwnerTextBody . InsertXHTML ( fieldValue , paragraph . OwnerTextBody . ChildEntities . IndexOf ( paragraph ) , index ) ;
9898
99- //Unsubscribe the ImageNodeVisited event after processing.
99+ //Unhook the ImageNodeVisited event after processing.
100100 paragraph . Document . HTMLImportSettings . ImageNodeVisited -= OpenImage ;
101101 }
102102 }
You can’t perform that action at this time.
0 commit comments