Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenClipboard 失败 (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN)) #685

Open
bovender opened this issue May 28, 2018 · 0 comments

Comments

@bovender
Copy link
Owner

This issue was submitted by the add-in's exception handler.

Exception:

System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard 失败 (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))
   at System.Runtime.InteropServices.ComTypes.IDataObject.GetData(FORMATETC& format, STGMEDIUM& medium)
   at System.Windows.DataObject.OleConverter.GetDataInner(FORMATETC& formatetc, STGMEDIUM& medium)
   at System.Windows.DataObject.OleConverter.GetDataFromOleHGLOBAL(String format, DVASPECT aspect, Int32 index)
   at System.Windows.DataObject.OleConverter.GetDataFromBoundOleDataObject(String format, DVASPECT aspect, Int32 index)
   at System.Windows.DataObject.OleConverter.GetData(String format, Boolean autoConvert, DVASPECT aspect, Int32 index)
   at System.Windows.DataObject.OleConverter.GetData(String format, Boolean autoConvert)
   at System.Windows.DataObject.GetData(String format, Boolean autoConvert)
   at System.Windows.Clipboard.GetDataInternal(String format)
   at System.Windows.Clipboard.GetData(String format)
   at XLToolbox.Export.ScreenshotExporter.CreateFreeImageViaDIB() in XLToolbox\Export\ScreenshotExporter.cs:line 90
   at XLToolbox.Export.ScreenshotExporter.ExportSelection(String fileName) in XLToolbox\Export\ScreenshotExporter.cs:line 45
   at XLToolbox.Export.ViewModels.ScreenshotExporterViewModel.DoExportSelection(FileNameMessageContent messageContent) in XLToolbox\Export\ViewModels\ScreenshotExporterViewModel.cs:line 104
   at Bovender.Mvvm.Messaging.Message`1.<>c__DisplayClass2.<Send>b__0()
   at Bovender.Mvvm.Actions.FileDialogActionBase.Invoke(Object parameter)
   at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   at Bovender.Mvvm.Actions.NonUiTrigger.Invoke(Object parameter)
   at Bovender.Mvvm.Actions.MessageActionExtensions.Invoke(MessageActionBase action, EventArgs messageArgs)
   at XLToolbox.Dispatcher.<ExportScreenshot>b__8(Object sender, MessageArgs`1 args) in XLToolbox\Dispatcher.cs:line 262
   at Bovender.Mvvm.Messaging.Message`1.Send(T messageContent, Action`1 respond)
   at XLToolbox.Export.ViewModels.ScreenshotExporterViewModel.DoChooseFileName() in XLToolbox\Export\ViewModels\ScreenshotExporterViewModel.cs:line 84
   at XLToolbox.Export.ViewModels.ScreenshotExporterViewModel.<get_ExportSelectionCommand>b__0(Object param) in XLToolbox\Export\ViewModels\ScreenshotExporterViewModel.cs:line 48
   at Bovender.Mvvm.DelegatingCommand.Execute(Object parameter)

Message: OpenClipboard 失败 (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))

Environment

Parameter Value
Version 7.2.13
OS Microsoft Windows NT 10.0.16299.0, 64-bit
Excel 365 (16.0.9029), 32-bit
CLR 4.0.30319.42000, 32-bit
VSTO runtime 10.0.60301
ClickOnce False
Bovender 0.17.0.0
FreeImage 3.16.0
Identifier 2002ed073359c3cdc85624533fac46a55c0cbd5bcfe8fe16689a13e6f4d8de62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant