Page 1 of 1

Re: Print preview

Posted: Mon May 27, 2019 12:43 pm
by salvadordf
Hi,

The print preview is not implemented in Windows yet but it seems to be very close to be added to the master CEF branch :
https://bitbucket.org/chromiumembedded/ ... quests/126

Re: Print preview

Posted: Tue Jul 14, 2020 7:59 pm
by danicarla2
Hi guys...

There is a way to make Print preview faster?

To preview a 50 pages, chrome takes about 20 seconds to generate the print preview, but in CEF4 it takes about 70 or 80 seconds

Re: Print preview

Posted: Wed Jul 15, 2020 8:06 am
by salvadordf
Perhaps it would be faster with hardware acceleration.

Try setting GlobalCEFApp.EnableGPU to TRUE before the GlobalCEFApp.StartMainProcess call in the DPR file.

Re: Print preview

Posted: Wed Jul 15, 2020 1:55 pm
by danicarla2
Tks you for your help

I tried to do that, but the difference is imperceptible...

Is there a way to choose when to print using the print preview and when to use the system dialog? Perhaps only with javascript?

Re: Print preview

Posted: Wed Jul 15, 2020 1:59 pm
by salvadordf
Set GlobalCEFApp.EnablePrintPreview to FALSE before the GlobalCEFApp.StartMainProcess call in the DPR file to use the print dialog.

Re: Print preview

Posted: Fri Jul 17, 2020 2:43 pm
by danicarla2
Tks ;)