HtmlViewer icon indicating copy to clipboard operation
HtmlViewer copied to clipboard

How can i print page on Linux in Lazarus?

Open Snake7719 opened this issue 2 years ago • 3 comments

Printing disabled in Linux. I need to print html document loaded in THtmlViewer. How i can do this?

Snake7719 avatar Jun 20 '23 12:06 Snake7719

Unfortunately printing is based on Windows Metafiles. There is no implementation for them in Lazarus for Linux.

BerndGabriel avatar Jul 01 '23 18:07 BerndGabriel

Is there another way to print the content of HtmlViewer in Linux?

Snake7719 avatar Aug 12 '23 11:08 Snake7719

When i trying to print like this: ` Printer.BeginDoc;

HtmlViewer1.Draw(Printer.Canvas, 0, Printer.PageWidth, Printer.PageWidth, Printer.PageHeight);

Printer.EndDoc; ` i've got something like this:

image

Snake7719 avatar Aug 15 '23 06:08 Snake7719