From 7845b5345e5243890f0a33e1dd8d3e0e55308f89 Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 11 Dec 2013 21:56:42 +0100 Subject: [PATCH] Found that #1517 (word export) wasn't fixed, should do in code what I write in the comments... --- GreenshotOfficePlugin/OfficeExport/WordExporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs index d6da69858..c7423ba09 100644 --- a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs +++ b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs @@ -72,7 +72,7 @@ namespace Greenshot.Interop.Office { // Bug #1517: image will be inserted into that document, where the focus was last. It will not inserted into the chosen one. // Solution: Make sure the selected document is active, otherwise the insert will be made in a different document! try { - wordApplication.Activate(); + wordDocument.Activate(); } catch { } if (wordApplication.Selection != null) {