Bug 493465 - Adjust/add css to fix column width too narrow/too close in printed reports
Summary: Adjust/add css to fix column width too narrow/too close in printed reports
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: reports (show other bugs)
Version: git (master)
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 03:20 UTC by bnbunch
Modified: 2024-09-28 00:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Report too close and wraps to next line (92.73 KB, image/png)
2024-09-22 03:20 UTC, bnbunch
Details
I&E Report (40.18 KB, image/png)
2024-09-24 00:13 UTC, bnbunch
Details
attachment-1408850-0.html (2.17 KB, text/html)
2024-09-26 15:18 UTC, bnbunch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bnbunch 2024-09-22 03:20:13 UTC
Created attachment 173951 [details]
Report too close and wraps to next line

Reports patticularyl Budget and I&E with narrow columns.
When printed, data from previous column runs together. Some build versions you can distinguish by Dollar sign in front of number. Some builds dont have dollar sign and numbers run together if number is 1,000 or more Those with more than 3 columns will wrap to next line along with header.
Need allow spacing between columns

Screen view is all aligned, But changes when printed. Have tried different printers with same results
Comment 1 Jack 2024-09-22 03:33:39 UTC
If you want help, please learn how to file a bug report that makes sense.  I've changed a few things, but please add info.  You talk about printing - how have you printed?  Is this just file/print from displaying the report in the program, or have you exported as HTML and viewed in a browser and printed from there?  Is this on Linux (which distor,) Windows, or Mac - it can make a difference.
Comment 2 Thomas Baumgart 2024-09-22 08:37:01 UTC
Updating state of this entry.
Comment 3 bnbunch 2024-09-24 00:13:01 UTC
Created attachment 174008 [details]
I&E Report
Comment 4 bnbunch 2024-09-24 00:15:50 UTC
Comment on attachment 174008 [details]
I&E Report

Windows 10.  I&E Report Git master numbers run together See I&E.png. This is when selecting print from toolbar
Comment 5 Jack 2024-09-24 16:13:06 UTC
Minor point: note the "All values shown are in US Dollar," which is why dollar signs are not printed.

Suggestions
-- if you want a good print, try exporting the report as HTML and then printing from a browser.  I know it's an extra step,, and there may still be problems, but it should be better.  Even better is to export as csv, import to LibreOffice (or other spreadsheet program) and print from there.  That will give you much more control.  Let us know if that helps.  
-- confirm whether you are printing to USLetter or A4.  I'm in the US, but just checked, and found it was still set to A4.  That won't make a huge change, but possibly enough to notice.

I suspect the underlying problem relates to reports being displayed using HTML.  I would need to dig into the code, but it looks like printing is done using underlying Qt routines, and KMyMoney probably does not really have sufficient explicit control over column width.  Items will wrap withing the column if they don't fit, although I'm not sure why the padding between columns does seem to be gone in the printed version (and print preview.) It's possible things can be improved by  modifying the css, but it will take time to work on that.
Comment 6 bnbunch 2024-09-26 15:18:15 UTC
Created attachment 174112 [details]
attachment-1408850-0.html

Didn't think of that thought exported report was just CSV. Worked great.
Plenty space between columns.
Thanks again

On Tue, Sep 24, 2024, 11:13 AM Jack <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=493465
>
> --- Comment #5 from Jack <ostroffjh@users.sourceforge.net> ---
> Minor point: note the "All values shown are in US Dollar," which is why
> dollar
> signs are not printed.
>
> Suggestions
> -- if you want a good print, try exporting the report as HTML and then
> printing
> from a browser.  I know it's an extra step,, and there may still be
> problems,
> but it should be better.  Even better is to export as csv, import to
> LibreOffice (or other spreadsheet program) and print from there.  That will
> give you much more control.  Let us know if that helps.
> -- confirm whether you are printing to USLetter or A4.  I'm in the US, but
> just
> checked, and found it was still set to A4.  That won't make a huge change,
> but
> possibly enough to notice.
>
> I suspect the underlying problem relates to reports being displayed using
> HTML.
>  I would need to dig into the code, but it looks like printing is done
> using
> underlying Qt routines, and KMyMoney probably does not really have
> sufficient
> explicit control over column width.  Items will wrap withing the column if
> they
> don't fit, although I'm not sure why the padding between columns does seem
> to
> be gone in the printed version (and print preview.) It's possible things
> can be
> improved by  modifying the css, but it will take time to work on that.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 Jack 2024-09-28 00:27:40 UTC
Rather than just close, I'm changing to wishlist to adjust css controlling spacing for printing.