Hi,
is it possible (and how) to activate the "kiosk" and "kiosk-printing" switches in an embedded CEF in Java? I would like to have the possiblilty of silent printing in an application, without the native Windows dialog popping up.
Thanks
air wrote:is it possible (and how) to activate the "kiosk" and "kiosk-printing" switches in an embedded CEF in Java?
air wrote:I would like to have the possiblilty of silent printing in an application, without the native Windows dialog popping up.
options->Flags = PD_RETURNDEFAULT;
options->dwResultAction = PD_RESULTPRINT;
HRESULT PrintingContextSytemDialogWin::ShowPrintDialog(PRINTDLGEX* options) {
base::MessageLoop::ScopedNestableTaskAllower allow(
base::MessageLoop::current());
options->Flags |= PD_RETURNDEFAULT;
HRESULT result = PrintDlgEx(options);
options->dwResultAction = PD_RESULT_PRINT;
return result;
}
air wrote:Thanks, that seems to much like "work-in-progess though". Found a workaround with a 3rd Party Application to not show the windows dialogs.
muaddib wrote:Can you, please, give an updated code for the latest CEF build?
Users browsing this forum: Google [Bot] and 181 guests