diff --git a/GreenshotOfficePlugin/Destinations/WordDestination.cs b/GreenshotOfficePlugin/Destinations/WordDestination.cs index 977ac087c..a3d637f2e 100644 --- a/GreenshotOfficePlugin/Destinations/WordDestination.cs +++ b/GreenshotOfficePlugin/Destinations/WordDestination.cs @@ -142,12 +142,12 @@ namespace GreenshotOfficePlugin { } } try { - WordExporter.InsertIntoNewDocument(tmpFile, null); + WordExporter.InsertIntoNewDocument(tmpFile, null, null); exportInformation.ExportMade = true; } catch(Exception) { // Retry once, just in case try { - WordExporter.InsertIntoNewDocument(tmpFile, null); + WordExporter.InsertIntoNewDocument(tmpFile, null, null); exportInformation.ExportMade = true; } catch (Exception ex) { LOG.Error(ex); diff --git a/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs b/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs index 2b0e43561..c9c28b69b 100644 --- a/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs +++ b/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs @@ -199,7 +199,7 @@ namespace Greenshot.Interop.Office { // Earlier versions of Outlook also supported an Inspector.HTMLEditor object property, but since Internet Explorer is no longer the rendering engine for HTML messages and posts, HTMLEditor is no longer supported. if (inspector.IsWordMail() && inspector.WordEditor != null) { try { - if (WordExporter.InsertIntoExistingDocument(inspector.WordEditor.Application, inspector.WordEditor, tmpFile)) { + if (WordExporter.InsertIntoExistingDocument(inspector.WordEditor.Application, inspector.WordEditor, tmpFile, null, null)) { LOG.Info("Inserted into Wordmail"); // check the format afterwards, otherwise we lose the selection diff --git a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs index 31b7b0228..fef43baee 100644 --- a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs +++ b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs @@ -47,7 +47,7 @@ namespace Greenshot.Interop.Office { for (int i = 1; i <= wordApplication.Documents.Count; i++) { using (IWordDocument wordDocument = wordApplication.Documents.item(i)) { if (wordDocument.ActiveWindow.Caption.StartsWith(wordCaption)) { - return InsertIntoExistingDocument(wordApplication, wordDocument, tmpFile); + return InsertIntoExistingDocument(wordApplication, wordDocument, tmpFile, null, null); } } }