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:
RKrom 2013-01-25 12:35:45 +00:00
commit c9f87937f6
3 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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

View file

@ -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);
}
}
}