print and print preview is not working in iframe window.

Discussion of current events and participation in intelligent conversation with other CEF users.

print and print preview is not working in iframe window.

Postby acharyanil » Wed Aug 28, 2019 1:05 pm

Hi,

In cefclient (3770 branch), print and print preview is not working in iframe content window.

I have included below iframe in the cefclient
<div class="ctr-p" id="viewport"><div id="doc-info"></div>
<iframe src="https://www.google.com" id="testprint"></iframe>
and executed below command in console.
document.getElementById('testprint').contentWindow.document.execCommand('print');
Print dialog does not appear.
Rest of the print (windows.print()) works fine, only problem is in the iframe window.

From the analysis, I have found that CEF is not receiving PrintHostMsg_ShowScriptedPrintPreview (CefPrintViewManager::OnShowScriptedPrintPreview) IPC message when the print is executed in the iframe window.

Best Regards,
Anil
acharyanil
Techie
 
Posts: 16
Joined: Tue May 14, 2019 6:34 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 13 guests