Bug 297007

Summary: Printing splits lines over pages
Product: [Applications] kmymoney Reporter: bevan
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: me, onet.cristian, ralf.habacker
Priority: NOR Keywords: junior-jobs
Version: 4.6.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Report printed using KMyMoneySample file

Description bevan 2012-03-29 03:33:56 UTC
Printing reports splits lines over pages so they are unreadable.
Comment 1 Alvaro Soliverez 2012-04-27 21:47:06 UTC
Can you provide an example printing to PDF and attaching it here?
Comment 2 Cristian Oneț 2014-07-28 15:05:06 UTC
I've also seen this and will attach some sample files.
Comment 3 Cristian Oneț 2014-07-29 06:08:19 UTC
Created attachment 88004 [details]
Report printed using KMyMoneySample file

Data is clipped on pages 3 and 6. Maybe this is a khtml issue because we do use 'page-break-inside: avoid' in the css for printing '@media print'.
Comment 4 Ralf Habacker 2019-10-09 21:54:04 UTC
I found this issue also with 5.x releases.

> Data is clipped on pages 3 and 6. Maybe this is a khtml issue because we do use > 'page-break-inside: avoid' in the css for printing '@media print'.

Exporting to pdf on Windows also breaks pages inside lines.

A workaround is to export the report to a html file and print it with a browser. I tested firefox, which adds page breaks not inside lines.
Comment 5 Ralf Habacker 2019-10-14 06:20:52 UTC
(In reply to Ralf Habacker from comment #4)
> A workaround is to export the report to a html file and print it with a
> browser. I tested firefox, which adds page breaks not inside lines.
I also checked Konqueror, which does not show this mentioned behavior.

Unfortunally using konqueror the page header, which is shown when printing reports from kmymoney, get lost. The tested konqueror version id 5.07, which uses QtWebkit from Qt 5.9.7 for rendering and seems a known issue (for example https://stackoverflow.com/questions/32026422/print-the-contents-of-qwebframe-with-header-and-footer)
Comment 6 Ralf Habacker 2019-10-24 07:56:41 UTC
Further research shows that a line that is only partially displayed at the bottom of one page is completely repeated on the next page. So no information is lost, it's just an ugliness.
Comment 7 Ralf Habacker 2019-10-24 07:58:41 UTC
(In reply to Ralf Habacker from comment #5)
> Unfortunally using konqueror the page header, which is shown when printing
> reports from kmymoney, get lost. The tested konqueror version id 5.07, which
> uses QtWebkit from Qt 5.9.7 for rendering and seems a known issue 
filed a related bug 413352
Comment 8 Jack 2022-03-14 21:36:09 UTC
Might this have been addressed with the recent css related work?
Comment 9 Dawid Wróbel 2022-03-17 12:38:03 UTC
Just checked "Transactions by month" report and pages are split without artifacts, so I'd say it's fixed.