Exception thrown when exporting to Powerpoint 2007 when Powerpoint is closed

Description

Export works when Powerpoint 2007 is open. Doesn't work if it is closed and Greenshot needs to start it.

Export to Word 2007 works ok.

*Error message:*

*The destination Powerpoint rejected Greenshot access, probably a dialog is open. Close the dialog and try again.*

Software version: 1.1.7.17-g98c8f59 (64 bit)
.NET runtime version: 4.0.30319.1008
Time: 2014-01-06 15:52:26 +10:00
OS: Windows 7 Home Premium Service Pack 1 (x64) 6.1 build 7601 revision 10000
GDI object count: 129
User object count: 51
Surface count: 1
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.

Stack:

Server stack trace:
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Greenshot.Interop.COMWrapper.Invoke(IMessage myMessage)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Greenshot.Interop.Office.IPresentations.Add(MsoTriState WithWindow)
at Greenshot.Interop.Office.PowerpointExporter.InsertIntoNewPresentation(String tmpFile, Size imageSize, String title)
at GreenshotOfficePlugin.PowerpointDestination.ExportCapture(Boolean manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
at GreenshotPlugin.Core.AbstractDestination.<>c_DisplayClassd.<ShowPickerMenu>b_a(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
— InnerException: —
Exception: System.Runtime.InteropServices.COMException
Message: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

ErrorCode: 0x80004005

Stack:

Configuration dump:
[Core]
Language=en-US
RegionHotkey=PrintScreen
WindowHotkey=Alt + PrintScreen
FullscreenHotkey=Ctrl + PrintScreen
LastregionHotkey=Shift + PrintScreen
IEHotkey=Shift + Ctrl + PrintScreen
IsFirstLaunch=False
Destinations=Picker
ClipboardFormats=PNG,DIB
CaptureMousepointer=True
CaptureWindowsInteractive=False
CaptureDelay=100
ScreenCaptureMode=Auto
ScreenToCapture=1
WindowCaptureMode=Auto
WindowCaptureAllChildLocations=False
DWMBackgroundColor=Transparent
PlayCameraSound=False
ShowTrayNotification=True
OutputFilePath=C:\Users\Robert\Desktop
OutputFileAllowOverwrite=True
OutputFileFilenamePattern=${capturetime:d"yyyy-MM-dd HH_mm_ss"}-${title}
OutputFileFormat=png
OutputFileReduceColors=False
OutputFileAutoReduceColors=False
OutputFileCopyPathToClipboard=True
OutputFileAsFullpath=C:\Users\Robert\Pictures\Garmin update fail.png
OutputFileJpegQuality=80
OutputFilePromptQuality=False
OutputFileIncrementingNumber=1
OutputPrintPromptOptions=True
OutputPrintAllowRotate=False
OutputPrintAllowEnlarge=False
OutputPrintAllowShrink=True
OutputPrintCenter=True
OutputPrintInverted=False
OutputPrintGrayscale=False
OutputPrintMonochrome=False
OutputPrintMonochromeThreshold=127
OutputPrintFooter=True
OutputPrintFooterPattern=${capturetime:d"D"} ${capturetime:d"T"} - ${title}
NotificationSound=default
UseProxy=True
IECapture=True
IEFieldCapture=False
WindowClassesToCheckForIE=AfxFrameOrView70,IMWindowClass
AutoCropDifference=10
IncludePlugins=
ExcludePlugins=
ExcludeDestinations=OneNote
UpdateCheckInterval=1
LastUpdateCheck=01/06/2014 11:49:17
DisableSettings=False
DisableQuickSettings=False
DisableTrayicon=False
HideExpertSettings=False
ThumnailPreview=True
NoGDICaptureForProduct=intellij,idea
NoDWMCaptureForProduct=citrix,ica,client
OptimizeForRDP=False
MinimizeWorkingSetSize=False
WindowCaptureRemoveCorners=True
CheckForUnstable=False
ActiveTitleFixes=Firefox,IE,Chrome
TitleFixMatcher.Firefox= - Mozilla Firefox.*
TitleFixMatcher.IE= - (Microsoft|Windows) Internet Explorer.*
TitleFixMatcher.Chrome= - Google Chrome.*
TitleFixReplacer.Firefox=
TitleFixReplacer.IE=
TitleFixReplacer.Chrome=
EnableSpecialDIBClipboardReader=True
WindowCornerCutShape=5,3,2,1,1
LeftClickAction=SHOW_CONTEXT_MENU
DoubleClickAction=OPEN_LAST_IN_EXPLORER
ZoomerEnabled=True
MaxMenuItemLength=25
MailApiTo=
MailApiCC=
MailApiBCC=
OptimizePNGCommand=
OptimizePNGCommandArguments="{0}"
LastSaveWithVersion=1.1.5.2643
ProcessEXIFOrientation=True

Environment

None

Attachments

1
powerpoint error.png
12 years ago

Gliffy Diagrams

Activity

Show:
Robin Krom
January 22, 2014 at 10:14 AM
  • *status*: open --> pending

  • *Resolution*: none --> works-for-me

Robin Krom
January 22, 2014 at 10:14 AM

Hi Robert,

sorry for the slow response.

I have a system with 2010 and 2013 at my disposal, and they work fine so it's a bit hard to test a solution. With the limited resources (financial & people) we have, it's quite hard to support all possible versions of Office so I hope you accept I need to do a bit of guessing.

I had a search on the internet and found something that seems to be a solution/explanation:
http://eshed.blogspot.de/2009/08/hresult-efail-powerpoint-solution.html

Might not be what you want to hear, maybe you don't have the rights to install.
But my opinion is that 2007 is "obsolete" and we can't afford to spend a lot of time on this issue especially if the problem seems to arrive from a missing component...

Hope I still have been able to help you.

Best wishes,
Robin

Robert Munnings
January 6, 2014 at 5:15 AM

Attachment powerpoint error.png has been added with description: imported from: http://sourceforge.net/p/greenshot/bugs/1602/attachment/powerpoint%20error.png

Incomplete

Details

Assignee

Reporter

Labels

Created January 6, 2014 at 5:15 AM
Updated January 6, 2014 at 5:15 AM
Resolved January 6, 2014 at 5:15 AM