Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Print preview

Post Reply
User avatar
salvadordf
Posts: 4037
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Print preview

Post 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
User avatar
danicarla2
Posts: 19
Joined: Mon Oct 01, 2018 6:01 pm
Location: Brazil

Re: Print preview

Post 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
User avatar
salvadordf
Posts: 4037
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Print preview

Post 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.
User avatar
danicarla2
Posts: 19
Joined: Mon Oct 01, 2018 6:01 pm
Location: Brazil

Re: Print preview

Post 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?
User avatar
salvadordf
Posts: 4037
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Print preview

Post by salvadordf »

Set GlobalCEFApp.EnablePrintPreview to FALSE before the GlobalCEFApp.StartMainProcess call in the DPR file to use the print dialog.
User avatar
danicarla2
Posts: 19
Joined: Mon Oct 01, 2018 6:01 pm
Location: Brazil

Re: Print preview

Post by danicarla2 »

Tks ;)
Post Reply