[Qt] Printing with WebKit
aime two
aime2nice at oqvrai.net
Mon Sep 7 19:38:33 CEST 2009
Thanks for your time.
QPrinter_isValid returns : "true";
Qprinter_Printername returns the name of the printer I select with
printdialog1.execute (Canon MP600R Printer)
I set PrinterOutputFormat with "QPrinterNativeformat"
I set Printer PageSize to "0" (QPrinterA4)
Qprinter_PrintProgram returns : '' (empty string)
is this last thing my problem?
P.S. Sorry for my english....
zeljko a écrit :
> On Monday 07 September 2009 13:08, aime2nice at oqvrai.net wrote:
>
>> 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?
>>
>
> 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
> Qt at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20090907/28c79a49/attachment-0002.html>
More information about the Qt
mailing list