fpreport: Rendering Report to Printer on RasPi give empty memo content
Original Reporter info from Mantis: af0815 @afriess
-
Reporter name: Andi Friess
Original Reporter info from Mantis: af0815 @afriess
- Reporter name: 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 &LtPos;Item xx>" is written correct, but ? overwritten.
see printjob.zip - is is the resulting ps file before sended to the printer.
Steps to reproduce:
use the extended the fpreport sample (from lazarus/examples/fpreport) and it shows the same issue on a RasPi.
use the attached extended samplecode.
Additional information:
It is the sam if you compile native on a RasPi, or crosscompile from windows to raspi.
the issue is in fpc fixes3.2 with Lazarus fixes20 and trunk/trunk.
Mantis conversion info:
- Mantis ID: 35973
- OS: raspbian (arm-linux)
- OS Build: wheezy
- Platform: RasPi 3B+