-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CefSharp with Outlook 2010 VSTO Add-in #1191
Comments
Before you go too far with thing, it's worth checking out #351 There are certain limitations with how There is a potential workaround though it likely requires quite a bit of work see #351 (comment) You may need to consider another |
@ISulimanov Anything else before I close this? |
No, Thank I found out all that I wanted, thanks for the info. |
Reading through all the links above, does this mean |
@smaranh Correct. There is #1556, though it's not production ready and won't be ready anytime soon (please don't ask when it's going to be merged, you'll only annoy me). |
Awesome that really helps. Let me try and add Unit Tests for #1556 and I guess we can take it from there. P.S. Don't wish to annoy you (for sure 😏 ) |
So I built the CefSharp, with the changes suggested in the PR. I then copied the DLLs over to my project (ExcelAddIn) debug folder from Did I not build the changes right? Is copying over the DLLs not the right way to implement this? |
You'll have to compile against your new dlls. Apart from that I cannot help you, I've never tried that scenario. You should seriously consider |
Ok, so I finally was able to get it working. Here's how (for some lost souls who might want to use it), First, u need to use the new DLL's built using #1556 and add references accordingly and VOILA!! it works beautifully. |
I encountered the same problem. Is there a clear demo on how to introduce cefsharp into the office vsto project? |
Try using https://github.com/NetOfficeFw to create your Add-in instead of VSTO. |
I have known about NetOffice, and it is not suitable for our project. I am now worried about how to make cefsharp be used normally in the existing vsto projects. So far I have not found a suitable method, and I found CefGlue and ChromiumFx The demo can't be used normally, it seems that no one has maintained it, it is very tangled |
Using CefSharp directly in a VSTO add-in is not supported. You'll need to run CefSharp out of process. https://github.com/stever/AppHostCefSharp has an example that you might be able to adapt. There won't be an official example as I don't own a copy of Microsoft Office. |
@zhanghaigang666 CefSharp requires to run in the default AppDomain. As VSTO will isolate you add-in in its own AppDomain, CefSharp won't work there. You can use NetOffice to write the add-in, or use the standard COM interfaces available (the You cannot use add-in isolation like COM Shim wrappers. Alternatively, you may try to use other CEF libraries which does not require to be run in default AppDomain. |
Hello everyone.
And so I know that it was written about this error more than once.
Directly: https://social.msdn.microsoft.com/Forums/office/en-US/8c3d0801-986e-424f-b35c-368de2a0d8e0/host-cefsharpwinform-in-outlook-2010-addin?forum=outlookdev
Indirectly: #519
And of course I read
https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions
and
https://github.com/cefsharp/CefSharp/wiki/Output-files-description-table-%28Redistribution%29
I have read all words from this link, but could not start Outlook 2010 VSTO Add-in with CefSharp
My story:
Download CefSharp from Nuget
Packages folder includes:
• cef.redist.x64.3.2272.32
• cef.redist.x86.3.2272.32
• CefSharp.Common.41.0.1
• CefSharp.WinForms.41.0.1
Create Outlook 2010 VSTO Add-in
Add next references from CefSharp.Common.41.0.1\CefSharp\x64 and CefSharp.WinForms.41.0.1\CefSharp\x64 to my project.
• CefSharp.dll
• CefSharp.BrowserSubprocess.Core.dll
• CefSharp.Core.dll
• CefSharp.WinForms.dll
Also I put dlls in *\MyProjectPath...\ bin\x64\debug* from
*\packages\cef.redist.x64.3.2272.32\CEF\x64*
Follows dlls:
• libcef.dll
• libEGL.dll
• libGLESv2.dll
• pdf.dll
• d3dcompiler_43.dll
• d3dcompiler_47.dll
• ffmpegsumo.dll
Target Platform for solution x64, Outlook client x64
Also a I have downloaded and install VS C++ redistributables for my platform.
For plugin I have wrote a simple code :
And... My Exception
Additional Note:
I have not any problems with WinForm application.
I cannot change target platform to x86 because version of my build should be equals to Outlook client version.
Please help I am very disappointed in failure
The text was updated successfully, but these errors were encountered: