<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Den Jean,<br>
<br>
I try with your code, but it dont work.<br>
Can you add this print function in the project lclwebkit, try it on
windows, and then put the new project on the net?<br>
<br>
It's a good manier to ensure where is the problem for me.<br>
<br>
(my english is very bad, I know. I hope you understand my message)<br>
<br>
Regards,<br>
<br>
Aime2Nice <br>
<br>
(My nickname means "Aime of the city of "Nice", "Aime" is a name and
"Nice" is a city of the French Riviera)<br>
<br>
<br>
Den Jean a écrit :
<blockquote cite="mid:200909241858.43314.Den.Jean@telenet.be"
type="cite">
<pre wrap="">On Friday 18 September 2009 16:52:09 aime two wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is someone has an idea about my problem when I try print with Qwebview
on Windows?
</pre>
</blockquote>
<pre wrap=""><!---->I tested on windows and linux and it just works.
test code (lacks some *_destroys, just for testing purposes)
try
PrnInfo:=QPrinterInfo_Create;
QPrinterInfo_DefaultPrinter(PrnInfo);
if QPrinterInfo_isNull(PrnInfo) then
begin
writeln('no printer found');
exit;
end;
Prn:=QPrinter_Create(PrnInfo);
QPrinterInfo_printerName(PrnInfo,@w);
writeln('Default Printer Name:',w);
PrintDlg:=QPrintDialog_create(Prn);
QPrintDialog_exec(PrintDlg);
QPrinter_printerName(QAbstractPrintDialog_printer(PrintDlg),@w);
writeln('Chosen Printer Name:',w);
QWebView_print(ActiveTab.WebView,QAbstractPrintDialog_printer(PrintDlg));
except on E:Exception do
writeln('Exception occurred in FilePrint:',E.Message);
end;
_______________________________________________
Qt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qt@lists.lazarus.freepascal.org">Qt@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/qt">http://lists.lazarus.freepascal.org/mailman/listinfo/qt</a>
</pre>
</blockquote>
</body>
</html>