Enable Kiosk-Printing Mode in CEF

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Enable Kiosk-Printing Mode in CEF

Postby mostafa » Wed Mar 17, 2021 9:02 am

akhudairy wrote:
muaddib wrote:Can you, please, give an updated code for the latest CEF build?


Well here is an answer just a little bit late ... well 6 years late :) ... I did the code as suggested by @crast. .. I think I just did minor changes. I am building branch 4147 cef 84.1.1

\code\chromium_git\chromium\src\printing\printing_context_system_dialog_win.cc

HRESULT PrintingContextSystemDialogWin::ShowPrintDialog(PRINTDLGEX* options) {
static bool is_dialog_shown = false;
if (is_dialog_shown)
return E_FAIL;
base::AutoReset<bool> auto_reset(&is_dialog_shown, true);

options->Flags |= PD_RETURNDEFAULT; // 0x00000400
HRESULT result = PrintDlgEx(options);
options->dwResultAction = PD_RESULT_PRINT; //0x1

return result;
}


how can i make it in cefpython
mostafa
Newbie
 
Posts: 2
Joined: Mon Mar 15, 2021 8:40 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 23 guests