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

Printing problem multible documents #342

Open
mmvisualgit opened this issue Jan 23, 2024 · 0 comments
Open

Printing problem multible documents #342

mmvisualgit opened this issue Jan 23, 2024 · 0 comments

Comments

@mmvisualgit
Copy link

mmvisualgit commented Jan 23, 2024

Hallo,

I use the "HtmlViewer-11.9" with this component works the printing from multible HTML documents very good.
The commands are:

PrintDlg.Execute; // << Select a PDF printer
THtmlViewer.PrintScale := 2.2;
THtmlViewer.OpenPrint; // << start multible printing
For i := 0 To FileList.Count - 1 Do // loop for all HTML documents for printing
Begin
THtmlViewer.LoadFromStream();
THtmlViewer.Print(); // << add a new page and print into this new page(s)
End;
THtmlViewer.ClosePrint; // << start the printing

With this feature I can print a complete documentation with many help files into one PDF document. This was very nice to generate a PDF documentation.

Now I want change to the new component "HtmlViewer-11.10", but this feature does not work. The PDF document is not created.
Only this works: THtmlViewer.Print();, but this is only for a single HTML file printing.
I have looking into your code changes, but I have no idea where is the mistake. I have see, there are the file "vwPrint.pas" is splited into "vwPrint.pas" and "HtmlPrinter.pas", but I do not understand why this multible printig does not work.

Please, can you help me?

Thank you very much, Markus.

Used System: Lazarus V3.0 / 64 / Win10/64

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

No branches or pull requests

1 participant