<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for your time.<br>
<br>
QPrinter_isValid returns : "true";<br>
Qprinter_Printername returns the name of the printer I select with
printdialog1.execute (Canon MP600R Printer)<br>
I set PrinterOutputFormat with "QPrinterNativeformat"<br>
I set Printer PageSize to "0" (QPrinterA4)<br>
<br>
Qprinter_PrintProgram returns : '' (empty string)<br>
<br>
is this last thing my problem?<br>
<br>
P.S. Sorry for my english....<br>
<br>
<br>
<br>
zeljko a écrit :
<blockquote cite="mid:200909071416.28273.zeljko@holobit.net" type="cite">
<pre wrap="">On Monday 07 September 2009 13:08, <a class="moz-txt-link-abbreviated" href="mailto:aime2nice@oqvrai.net">aime2nice@oqvrai.net</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I use qwebview to display pages Html in my application. This works fine,
in Windows, Linux, Mac OSx (i386 and powerpc). But, when I want print the
content of my qwebview, I have just a blank page, on Windows only.
This is the code I use:
qwebview_print(webview1.handle,webview1.hprinter);
where hprinter is :
hprinter := QPrinter_create();
Why the page is blank on printer?
Have any idea?
</pre>
</blockquote>
<pre wrap=""><!---->
What says QPrinter_isValid(), QPrinter_printerName(),
QPrinter_printProgram().. QPrinter_outputFormat() ?
eg:
hprinter .= QPrinter_create();
QPrinter_isValid(hprinter);
QPrinter_printerName(hprinter);
QPrinter_outputFormat(hprinter);
QPrinter_printProgram(hprinter);
QPrinter_pageSize(hprinter);
_______________________________________________
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>