Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i print page on Linux in Lazarus? #333

Open
Snake7719 opened this issue Jun 20, 2023 · 3 comments
Open

How can i print page on Linux in Lazarus? #333

Snake7719 opened this issue Jun 20, 2023 · 3 comments

Comments

@Snake7719
Copy link

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

@BerndGabriel
Copy link
Owner

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

@Snake7719
Copy link
Author

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

@Snake7719
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants