mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Fixed compile errors
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2447 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
508b0385ce
commit
c9f87937f6
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue