I work with the DCEF3 in Dre version 89.0.18 and have a problem with the print preview.
In the source code I set the parameter
Code: Select all
GlobalCEFApp.EnablePrintPreview: = True;
GlobalCEFApp.EnableGPU: = True;
There I now have the option to call up the print preview with the right mouse button. This works so far and the preview opens in a popup window. It shows more than expected, but that is a minor matter.
There is also a print button in this window which, without EnablePrintPreview, also brings up a print dialog. Now you can print once and the Chromium window crashes.
Now you can print once and the Chromium window crashes.
With PrintPreview the white pop-up window opens without any content and the application freezes.
I have NO influence on the way the print button is used.
Does anyone have any idea what I'm doing wrong?
My Startup-Code is the following:
Code: Select all
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.FrameworkDirPath := 'CEF4Runtime';
GlobalCEFApp.ResourcesDirPath := 'CEF4Runtime';
GlobalCEFApp.LocalesDirPath := 'CEF4Runtime';
GlobalCEFApp.FlashEnabled := False;
GlobalCEFApp.EnablePrintPreview := True;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.SitePerProcess := False;
GlobalCEFApp.EnableMediaStream := False;
GlobalCEFApp.EnableSpeechInput := False;
GlobalCEFApp.EnableHighDPISupport := False;
GlobalCEFApp.DisableSpellChecking := True;
GlobalCEFApp.AddCustomCommandLine('--force-device-scale-factor', '0.8');
GlobalCEFApp.SingleProcess := True;
try
if not GlobalCEFApp.StartMainProcess then
begin
Exit;
end;
finally
GlobalCEFApp.Destroy;
GlobalCEFApp := nil;
end;