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

Re: gb.qt5.webview print question


Il 23/12/25 17:12, Benoît Minisini ha scritto:
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();")

Hi Benoit,

Thanks, I swear I tried the exact same code, but it didn't work here.
Did I use the wrong web settings?

Regards
Gianluigi


References:
gb.qt5.webview print questionGianluigi <gradobag@xxxxxxxxxxx>
Re: gb.qt5.webview print questionBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>