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.
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