[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.qt5.webview print question
[Thread Prev] | [Thread Next]
- Subject: Re: gb.qt5.webview print question
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Tue, 23 Dec 2025 17:12:58 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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.
| Re: gb.qt5.webview print question | Gianluigi <gradobag@xxxxxxxxxxx> |
| gb.qt5.webview print question | Gianluigi <gradobag@xxxxxxxxxxx> |