View Revisions: Issue #35973

Summary 0035973: fpreport: Rendering Report to Printer on RasPi give empty memo content
Revision 2019-08-17 12:42 by Michael Van Canneyt
Description I have created a report with fpreport (in code) and it works on Windows (32-bit app) with Rendering to LCLCanvas, PDF and Printer without problems.

On a RasPi with rasbian (on Jessy, Wheezy the same) rendering to LCLCanvas and PDF works, but on printer it shows not the text. pictures are correct rendered. The text is not rendered or only some points, except the footerband.

I have dived a little into fpreport and found out, it must have to do with Canvas.Textout in TFPReportExportCanvas.RenderMemo.
The parameters of Canvas.TextOut are imho correct, but not the rendered result. If i change Canvas.TextOut to Canvas.TextRect (as in designmode) and use the same parameters, the text is written to the printer.

it looks like something goes wrong on arm-linux with Canvas.TextOut.

The error is in rendering, i attach the resulting PS file. I have created it, with the debuggingmodus of printers4lazarus. And in the file you see the Text "Hello world <Item xx>" is written correct, but ? overwritten.

see printjob.zip - is is the resulting ps file before sended to the printer.
Revision 2019-08-16 09:34 by Andi Friess
Description I have created a report with fpreport (in code) and it works on Windows (32-bit app) with Rendering to LCLCanvas, PDF and Printer without problems.

On a RasPi with rasbian (on Jessy, Wheezy the same) rendering to LCLCanvas and PDF works, but on printer it shows not the text. pictures are correct rendered. The text is not rendered or only some points, except the footerband.

I have dived a little into fpreport and found out, it must have to do with Canvas.Textout in TFPReportExportCanvas.RenderMemo.
The parameters of Canvas.TextOut are imho correct, but not the rendered result. If i change Canvas.TextOut to Canvas.TextRect (as in designmode) and use the same parameters, the text is written to the printer.

it looks like something goes wrong on arm-linux with Canvas.TextOut.

The error is in rendering, i attach the resulting PS file. I have created it, with the debuggingmodus of printers4lazarus. And in the file you see the Text "Hello world <Item xx>" is written correct, but ? overwritten.

see printjob.zip - is is the resulting ps file before sended to the printer.