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

Feature Request - Add Print preview (WinForms only) #2332

Closed
29683747 opened this issue Mar 22, 2018 · 7 comments
Closed

Feature Request - Add Print preview (WinForms only) #2332

29683747 opened this issue Mar 22, 2018 · 7 comments
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. winforms
Milestone

Comments

@29683747
Copy link

Feature Request - quick print and print preview

@amaitland
Copy link
Member

amaitland commented Mar 22, 2018

CEF has yet to implement print preview, there is an open PR you can track the progress there https://bitbucket.org/chromiumembedded/cef/pull-requests/126

There is no quick print functional as part of the CEF API.

@amaitland amaitland changed the title Feature Request - quick print and print preview Feature Request - Add Print preview Mar 22, 2018
@amaitland amaitland added the upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. label Mar 22, 2018
@29683747
Copy link
Author

Thank you. I just wanted to implement such a function: brower.print ('printName', pageNumber) , and do not display the print dialog.

@cefsharp cefsharp deleted a comment from welcome bot Oct 28, 2018
@amaitland amaitland added this to the 77.0.0 milestone Jul 20, 2019
@amaitland
Copy link
Member

Print Preview support has been added in CEF with commit https://bitbucket.org/chromiumembedded/cef/commits/1669c0afbd121be45c41126ef5d09f44768e0e0a

Pass the --enable-print-preview command-line flag to enable.

I don't see any CEF API changes, so it looks like it's either enabled or disabled via a command line arg.

Should be included in version 77

@amaitland
Copy link
Member

amaitland commented Oct 1, 2019

master has been upgraded to CEF 77.1.3+gf0a1c44+chromium-77.0.3865.90

I've added CefSettings.EnablePrintPreview() to make appending the command line arg easier.

@amaitland
Copy link
Member

https://bitbucket.org/chromiumembedded/cef/issues/2867/save-as-pdf-is-not-working-in-pdf-viewer suggests that saving a pdf when print preview is enabled is not working.

@amaitland

This comment has been minimized.

@amaitland amaitland changed the title Feature Request - Add Print preview Feature Request - Add Print preview (WinForms only) Jan 30, 2020
@amaitland
Copy link
Member

Print preview is only available in WinForms see https://bitbucket.org/chromiumembedded/cef/issues/123/add-support-for-print-preview#comment-55952406 for official response from CEF maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. winforms
Projects
None yet
Development

No branches or pull requests

2 participants