* * *

Author Topic: Printing HtmlViewer under Linux  (Read 199 times)

toplek

  • New member
  • *
  • Posts: 47
Printing HtmlViewer under Linux
« on: April 16, 2018, 09:17:38 am »
Hello,
I have already asked a question about printing under Linux and paper dimentions, but the problem is still not solved. To be more general (maybe someone knows any solution), this is the code that works under Windows, but under Linux prints only a blank page. Alextp suggests that it's a problem of a color depth. Do you possibly know how to print a HtmlViewer under Linux?

Code: Pascal  [Select]
  1. Printer.Orientation:=poLandscape;
  2.  
  3. Printer.BeginDoc;
  4.  
  5. HtmlViewer1.Draw(Printer.Canvas,
  6.                    0,
  7.                    Printer.PageWidth,
  8.                    Printer.PageHeight,
  9.                    Printer.PageHeight); // Wysokosc poziomo.
  10.  
  11. Printer.EndDoc;
     
Any support would be greatly appreciated

zeljko

  • Hero Member
  • *****
  • Posts: 968
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Printing HtmlViewer under Linux
« Reply #1 on: April 16, 2018, 01:02:14 pm »
Have you tried with Qt lcl under linux ?

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus