Replies: 4 comments 1 reply
-
Hey @TonyK1 - Could you describe a bit more about how the ASP.NET web application is using and interacting with the WebView2? |
Beta Was this translation helpful? Give feedback.
-
A lot of our code is written in C++. This is accessed via a mixed managed interface from the C# code that implements our Web APIs. |
Beta Was this translation helpful? Give feedback.
-
Has any progress been made with WebView2 to allow CapturePreview to work in an ASP.NET server environment? |
Beta Was this translation helpful? Give feedback.
-
Any updates from Microsoft on when CapturePreview will work in an IIS environment for background image generation? |
Beta Was this translation helpful? Give feedback.
-
Our application is a dashboarding application that runs as both a Desktop application and an ASP.NET web application. Our core dlls are shared between both environments and are written in C++. The dashboards are rendered using the same JavaScript in both environments. In the Desktop product we were using the old WebBrowser IE control to render the dashboards. We have now upgraded the code to use WebView2.
Part of our functionality is to publish presentations in PowerPoint containing a number of user-selected dashboard panels. We generated these by using a second internal WebBrowser control and IViewObject to draw the browser display into a bitmap.
Now, with WebView2, we are using CapturePreview. This works fine within the Windows Desktop application, but fails in the Web application. The ICoreWebView2CapturePreviewCompletedHandler method never gets called.
I have a CView as the parent of the WebView2 control and have given it the Desktop Window as its parent. I have also tried ensuring the CView is visible with ShowWindow.
Is it possible to get CapturePreview working in the ASP.NET environment like this? If not, is it possible to update WebView2 to support this requirement?
Beta Was this translation helpful? Give feedback.
All reactions