[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gb.qt5.webview print question


Le 23/12/2025 à 16:52, Gianluigi a écrit :
Hi,

I'm passing on a question from a friend of ours on the Italian forum:

Before (with Gambas 3.15) I could print like this:
WebView1.Frame.Print(Printer1)
Now with gb.qt5.webview, how can I do it?

Thanks for any suggestions.
I recommended using the 'wkhtmltopdf' command, as I saw Olivier and Linugambi do on the Farm.
Do you know of any other ways?

Regards
Gianluigi



You must use javascript. Something like that:

WebView1.ExecJavascript("window.print();")

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: gb.qt5.webview print questionGianluigi <gradobag@xxxxxxxxxxx>
References:
gb.qt5.webview print questionGianluigi <gradobag@xxxxxxxxxxx>