Recent

Author Topic: Raw mode printing not work in QT  (Read 7028 times)

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Raw mode printing not work in QT
« on: January 27, 2012, 10:29:49 pm »
Raw mode printing not work in QT.

Show error
"Canvas not allowed in Raw Mode"

Easy test with example rawmodetest.lpi (printers folder)

With GTK2 work Ok.

Test with Lazarus 0.9.30.1 fpc 2.4.4 qt 4.6.2 32 bits
Test with Lazarus 0.9.30.1 fpc 2.4.2 qt 4.7  64 bits
Matrix printer epson lx 810.

QT seems to send the print as PostScript.
Check qtconfig app but nothing..

Any workarround ?
Thanks

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Raw mode printing not work in QT
« Reply #1 on: January 29, 2012, 07:06:03 pm »
Well  :'( still not supported

From http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/printers/qt/qtprinters.inc?view=markup&root=lazarus
Code: [Select]
procedure TQtPrinters.RawModeChanging;
begin
  inherited RawModeChanging;
  {$IFDEF VERBOSE_QT_PRINTING}
  DebugLn('TQtPrinters.RawModeChanging(): Raw mode is not yet supported');
  {$ENDIF}
end;   

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Raw mode printing not work in QT
« Reply #2 on: February 07, 2012, 06:12:02 pm »
Fell free to create patch for raw printing support if you need it badly.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Raw mode printing not work in QT
« Reply #3 on: February 08, 2012, 09:34:13 pm »
I do a workarround in Lazarus "printing" to text file, and then use lpr textfile -Pepson. (epson selected with TPrintDialog)

Qt not support raw printing.
See this bugreport (closed without solution)

"QPrintEngine add API support to send raw commands to printer"

https://bugreports.qt-project.org/browse/QTBUG-2705?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel

Regards

 

TinyPortal © 2005-2018