-
Notifications
You must be signed in to change notification settings - Fork 54
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
Printing with Microsoft print to PDF as admin #3271
Comments
@ajtruckle Thanks for reaching out. Can you send some sample code to replicate the issue? What does the popup look like? |
@novac42 @vickiez
As far as I am aware it is using the built-in core functionality here. So I right-click and choose Print: Then, I change it to print to the Microsoft PDF printer: As previously mentioned, I can use Save as PDF on the Print window and it behaves fine. |
I should also point out that my own "Save as PDF" at the bottom of the context menu works correctly and shows a file dialog and saves as PDF and then opens in the external PDF viewer. So, it is just this concept of displaying the Print window and choosing "Microsoft Print to PDF" that it does not like. |
I forgot this function that is used in creating the menu:
|
Update .... If I run the same steps outside of Visual Studio environment it is fine. It displays a file selection window for me to save the file. It is when I run it in Visual Studio that it fails. |
@ajtruckle thanks for sharing your code, I'm having some trouble reproducing the issue. Can you share your SDK and WebView2 Runtime versions? |
Sure! Here you go: SDK build I can replicate this with the sample WebView2APISample project. But, the key is that the application (or Visual Studio) must be running with elevation as Administrator. We used to have a similar problem with Save as PDF where it would not show the Save Dialog in Admin mode but the issue was fixed. My gut is telling me that this is exactly the same. When using Microsoft Print to PDF it will invoke a File Dialog and this will fail when you are running in Admin mode. |
These are all similar discussions (which I understand were fixed): |
Ah thanks for the extra info @ajtruckle. I've opened a bug on our backlog, will let you know as soon as there is an update. |
@vickiez Awesome! Thank you, Have a fab day. |
This also happens when using WPF and |
@vickiez Hi! Hope you are well. Any timeframe for this? |
Hi! The bug is lower priority at the moment and there is no set time frame, but will keep you updated |
Hi @vickiez I assume no movement on this one? |
Hi @ajtruckle, no update unfortunately. Will keep you posted |
Hi @vickiez This is another of these open tickets that I am concerned will just drop off the radar. The WV2 team encourage us to provide feedback but it seems there is so many issues open and unresolved, months or years later. Wouldn't it be great if they could all be hit on the head! 🛠️ |
Hi @ajtruckle, this item is still being tracked on our backlog, and there's no progress being made here. |
Hi @victorhuangwq , is this moving up the list ? 🤔❓ |
I can use the "Save as PDF") on the Print window. That is OK.
But if I select the Microsoft Print to PDF driver and click Print it fails.
It shows a popup.
AB#43711489
The text was updated successfully, but these errors were encountered: