i try to download a PDF file from my webMail-App to preview.
I use the Mainb- and SubProcess-Logic.
the following is my StartCode in the Main-DPR and the same in the SubPRocess-DPR, but with StartSubProcess instead of StartMainProcess
Code: Select all
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.FrameworkDirPath := 'CEF4Runtime32';
GlobalCEFApp.ResourcesDirPath := 'CEF4Runtime32';
GlobalCEFApp.LocalesDirPath := 'CEF4Runtime32\locales';
GlobalCEFApp.SitePerProcess := False;
GlobalCEFApp.EnableMediaStream := False;
GlobalCEFApp.EnableSpeechInput := False;
GlobalCEFApp.EnableHighDPISupport := False;
GlobalCEFApp.DisableSpellChecking := True;
GlobalCEFApp.EnablePrintPreview := True;
GlobalCEFApp.DisablePDFExtension := True;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.AddCustomCommandLine('--force-device-scale-factor', '0.85');
GlobalCEFApp.BrowserSubprocessPath := 'MyBrowser.exe';
GlobalCEFApp.StartMainProcess;
But in My WebMailer if i click the preview-Button a new Windows appears and the download starts, but the new windows won't disappear.
May you help please ?