Re: [GNC] Hard-Copy Report Output

2023-06-12 Thread John Ralls
/app is an alias for that long path when you're running inside the flatpak 
shell, see https://wiki.gnucash.org/wiki/Flatpak#Using_Command_Line_Tools. 
Unless you also run a browser in the same flatpak shell--installing the browser 
with flatpak won't work, that will create a different container--the browser 
can't see the alias. I don't know offhand if there's a way for GnuCash to tell 
that it's running inside a flatpak or to get the outside-the-flatpak path to 
/app, but even if it could the URI would get invalidated the next time you 
update the GnuCash flatpak.

Regards,
John Ralls


> On Jun 12, 2023, at 1:10 PM, rsbrux via gnucash-user 
>  wrote:
> 
> Thanks for  the tiüp, Vincent, but these things don't add up in the flatpak 
> installation.
> 
> In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", which 
> is also the path used in the HTML file.
> 
> However, clicking on the link leads to 
> "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/"
>  which does, in fact, contain a sudirectory "chartjs", which in turn contains 
> both "Chart.bundle.min.js" and "Chart.bundle.js".
> 
> Evidently the HTML generation doesn't take the possibility of a flatpak 
> installation into account.  I suppose I should file a bug for this, but I 
> wouldn't know where.
> 
> Thnaks for your help!
> 
> On 12.06.23 20:20, Vincent Dawans wrote:
>> Not that it might solve your underlying issue, but here is a reliable way to 
>> locate Chart.bundle.min.js assuming it was installed correctly with the rest 
>> of GC. This should work on any OS.
>> 
>> 1. Open GC and go in menu Help - About
>> 2. In that dialog window, look for the entry for GNC_DATA. It's the last one 
>> in the list. It should point to a directory path, for instance on Windows 
>> C:\Program Files (x86)\gnucash\share\gnucash but it will be different on 
>> ubuntu, etc.
>> 3. Navigate to that directory using whatever means your OS gives you to do 
>> that (File Manager, console, etc). In that directory that GNC_DATA is 
>> pointing to, you should find a subdirectory called chartjs. That is where 
>> Chart.bundle.min.js should be located and if any html file is pointing to it 
>> that ia what the path should be.
>> 
>> On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user 
>>  wrote:
>> 
>>> On Jun 11, 2023, at 9:56 AM, Adrien Monteleone
>> wrote:
>>>Is this a completely custom report or just a saved configuration?
>>If completely custom, you may want to try the -dev list.
>> 
>>This is a report I assembled from the options available in the GC
>>GUI (like the pie chart you successfully tested).
>>Unfortunately, I am not competent to use the programming
>>facilities behind GC's report generation.
>> 
>> 
>>> On Jun 11, 2023, John Ralls  wrote:
>>>It's most likely a javascript problem. Open the javascript
>>console in your browser and see if there's an error finding
>>Chart.bundle.min.js.
>>>The correct location is
>>/share/gnucash/chartjs/Chart.bundle.min.js where 
>>is where GnuCash is installed: /usr for a Linux package manager
>>installation, /Applications/Gnucash.app/Contents/Resources for a
>>macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc.
>>>
>>>You can fix the link by editing the html file in your favorite
>>text editor.
>> 
>>I have tried opening the exported HTML reports in Firefox on
>>Ubuntu and in Edge and Firefox on Windows.  Although the browser
>>consoles show errors, I don't see any pertaining to "
>>Chart.bundle.min.js", nor do I find any critical errors pertinent
>>to the report content.
>>The new HTML reports are looking for Chart.bundle.min.js in
>>/app/share/gnucash/chartjs/, but no such directory exists on the
>>Ubuntu system where GnuCash is installed.  In fact, there isn't
>>even an /app/ directory.  Perhaps this is due to GC being
>>installed as a flatpak.
>>Chart.bundle.min.js does not seem to exist on either system, so I
>>edited the HTML as you suggested, replacing the local path with
>>"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js;
>>but this did not improve matters.
>>However, my previously saved HTML reports from GC 2.xx also don't
>>display correctly, even though they contain no references to
>>Chart.bundle.min.js.  This suggests a more fundamental problem and
>>reveals my presumption that the HTML files could be used as
>>archives as naive.
>>I have a previously saved PDF file, which is, of course still
>>usable.  This will be my method going forward, although the lack
>>of a "scale to fit" option in the GC print dialog requires a bit
>>of trial and error to get a satisfactory PDF.
>> 
>>Many thanks to both of you for your support!
>> 
>>___
>>gnucash-user 

Re: [GNC] Hard-Copy Report Output

2023-06-12 Thread Vincent Dawans
For reference here is the bug report:  798956 – On Flatpak, broken link to
Chart.bundle.min.js in chart report html (gnucash.org)


On Mon, Jun 12, 2023 at 1:42 PM Vincent Dawans  wrote:

> Thanks rsbrux for testing that. It's not working on Flatpak, you are
> right. I just tested on flatpak and indeed the link in the html file is
> wrong. As soon as I update the html with the full path on my install then
> it works. I'll open a bug report on that if there isn't one yet.
>
> On Mon, Jun 12, 2023 at 1:10 PM rsbrux  wrote:
>
>> Thanks for  the tiüp, Vincent, but these things don't add up in the
>> flatpak installation.
>>
>> In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash",
>> which is also the path used in the HTML file.
>>
>> However, clicking on the link leads to
>> "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/"
>> which does, in fact, contain a sudirectory "chartjs", which in turn
>> contains both "Chart.bundle.min.js" and "Chart.bundle.js".
>>
>> Evidently the HTML generation doesn't take the possibility of a flatpak
>> installation into account.  I suppose I should file a bug for this, but I
>> wouldn't know where.
>>
>> Thnaks for your help!
>> On 12.06.23 20:20, Vincent Dawans wrote:
>>
>> Not that it might solve your underlying issue, but here is a reliable way
>> to locate Chart.bundle.min.js assuming it was installed correctly with the
>> rest of GC. This should work on any OS.
>>
>> 1. Open GC and go in menu Help - About
>> 2. In that dialog window, look for the entry for GNC_DATA. It's the last
>> one in the list. It should point to a directory path, for instance on
>> Windows C:\Program Files (x86)\gnucash\share\gnucash but it will be
>> different on ubuntu, etc.
>> 3. Navigate to that directory using whatever means your OS gives you to
>> do that (File Manager, console, etc). In that directory that GNC_DATA is
>> pointing to, you should find a subdirectory called chartjs. That is where
>> Chart.bundle.min.js should be located and if any html file is pointing to
>> it that ia what the path should be.
>>
>> On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user <
>> gnucash-user@gnucash.org> wrote:
>>
>>> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone <
>>> adrien.montele...@lusfiber.net> wrote:
>>> >Is this a completely custom report or just a saved configuration? If
>>> completely custom, you may want to try the -dev list.
>>>
>>> This is a report I assembled from the options available in the GC GUI
>>> (like the pie chart you successfully tested).
>>> Unfortunately, I am not competent to use the programming facilities
>>> behind GC's report generation.
>>>
>>>
>>> > On Jun 11, 2023, John Ralls  wrote:
>>> >It's most likely a javascript problem. Open the javascript console in
>>> your browser and see if there's an error finding Chart.bundle.min.js.
>>> >The correct location is
>>> /share/gnucash/chartjs/Chart.bundle.min.js where  is where
>>> GnuCash is installed: /usr for a Linux package manager installation,
>>> /Applications/Gnucash.app/Contents/Resources for a macOS bundle, C:\Program
>>> Files (x86)\gnucash for Windows, etc.
>>> >
>>> >You can fix the link by editing the html file in your favorite text
>>> editor.
>>>
>>> I have tried opening the exported HTML reports in Firefox on Ubuntu and
>>> in Edge and Firefox on Windows.  Although the browser consoles show errors,
>>> I don't see any pertaining to " Chart.bundle.min.js", nor do I find any
>>> critical errors pertinent to the report content.
>>> The new HTML reports are looking for Chart.bundle.min.js in
>>> /app/share/gnucash/chartjs/, but no such directory exists on the Ubuntu
>>> system where GnuCash is installed.  In fact, there isn't even an /app/
>>> directory.  Perhaps this is due to GC being installed as a flatpak.
>>> Chart.bundle.min.js does not seem to exist on either system, so I edited
>>> the HTML as you suggested, replacing the local path with "
>>> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js; but
>>> this did not improve matters.
>>> However, my previously saved HTML reports from GC 2.xx also don't
>>> display correctly, even though they contain no references to
>>> Chart.bundle.min.js.  This suggests a more fundamental problem and reveals
>>> my presumption that the HTML files could be used as archives as naive.
>>> I have a previously saved PDF file, which is, of course still usable.
>>> This will be my method going forward, although the lack of a "scale to fit"
>>> option in the GC print dialog requires a bit of trial and error to get a
>>> satisfactory PDF.
>>>
>>> Many thanks to both of you for your support!
>>>
>>> ___
>>> gnucash-user mailing list
>>> gnucash-user@gnucash.org
>>> To update your subscription preferences or to unsubscribe:
>>> 

Re: [GNC] Hard-Copy Report Output

2023-06-12 Thread Vincent Dawans
Thanks rsbrux for testing that. It's not working on Flatpak, you are right.
I just tested on flatpak and indeed the link in the html file is wrong. As
soon as I update the html with the full path on my install then it works.
I'll open a bug report on that if there isn't one yet.

On Mon, Jun 12, 2023 at 1:10 PM rsbrux  wrote:

> Thanks for  the tiüp, Vincent, but these things don't add up in the
> flatpak installation.
>
> In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash",
> which is also the path used in the HTML file.
>
> However, clicking on the link leads to
> "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/"
> which does, in fact, contain a sudirectory "chartjs", which in turn
> contains both "Chart.bundle.min.js" and "Chart.bundle.js".
>
> Evidently the HTML generation doesn't take the possibility of a flatpak
> installation into account.  I suppose I should file a bug for this, but I
> wouldn't know where.
>
> Thnaks for your help!
> On 12.06.23 20:20, Vincent Dawans wrote:
>
> Not that it might solve your underlying issue, but here is a reliable way
> to locate Chart.bundle.min.js assuming it was installed correctly with the
> rest of GC. This should work on any OS.
>
> 1. Open GC and go in menu Help - About
> 2. In that dialog window, look for the entry for GNC_DATA. It's the last
> one in the list. It should point to a directory path, for instance on
> Windows C:\Program Files (x86)\gnucash\share\gnucash but it will be
> different on ubuntu, etc.
> 3. Navigate to that directory using whatever means your OS gives you to do
> that (File Manager, console, etc). In that directory that GNC_DATA is
> pointing to, you should find a subdirectory called chartjs. That is where
> Chart.bundle.min.js should be located and if any html file is pointing to
> it that ia what the path should be.
>
> On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user <
> gnucash-user@gnucash.org> wrote:
>
>> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone <
>> adrien.montele...@lusfiber.net> wrote:
>> >Is this a completely custom report or just a saved configuration? If
>> completely custom, you may want to try the -dev list.
>>
>> This is a report I assembled from the options available in the GC GUI
>> (like the pie chart you successfully tested).
>> Unfortunately, I am not competent to use the programming facilities
>> behind GC's report generation.
>>
>>
>> > On Jun 11, 2023, John Ralls  wrote:
>> >It's most likely a javascript problem. Open the javascript console in
>> your browser and see if there's an error finding Chart.bundle.min.js.
>> >The correct location is
>> /share/gnucash/chartjs/Chart.bundle.min.js where  is where
>> GnuCash is installed: /usr for a Linux package manager installation,
>> /Applications/Gnucash.app/Contents/Resources for a macOS bundle, C:\Program
>> Files (x86)\gnucash for Windows, etc.
>> >
>> >You can fix the link by editing the html file in your favorite text
>> editor.
>>
>> I have tried opening the exported HTML reports in Firefox on Ubuntu and
>> in Edge and Firefox on Windows.  Although the browser consoles show errors,
>> I don't see any pertaining to " Chart.bundle.min.js", nor do I find any
>> critical errors pertinent to the report content.
>> The new HTML reports are looking for Chart.bundle.min.js in
>> /app/share/gnucash/chartjs/, but no such directory exists on the Ubuntu
>> system where GnuCash is installed.  In fact, there isn't even an /app/
>> directory.  Perhaps this is due to GC being installed as a flatpak.
>> Chart.bundle.min.js does not seem to exist on either system, so I edited
>> the HTML as you suggested, replacing the local path with "
>> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js; but
>> this did not improve matters.
>> However, my previously saved HTML reports from GC 2.xx also don't display
>> correctly, even though they contain no references to Chart.bundle.min.js.
>> This suggests a more fundamental problem and reveals my presumption that
>> the HTML files could be used as archives as naive.
>> I have a previously saved PDF file, which is, of course still usable.
>> This will be my method going forward, although the lack of a "scale to fit"
>> option in the GC print dialog requires a bit of trial and error to get a
>> satisfactory PDF.
>>
>> Many thanks to both of you for your support!
>>
>> ___
>> gnucash-user mailing list
>> gnucash-user@gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> -
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>>
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:

Re: [GNC] Hard-Copy Report Output

2023-06-12 Thread rsbrux via gnucash-user
Thanks for  the tiüp, Vincent, but these things don't add up in the 
flatpak installation.


In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", 
which is also the path used in the HTML file.


However, clicking on the link leads to 
"/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" 
which does, in fact, contain a sudirectory "chartjs", which in turn 
contains both "Chart.bundle.min.js" and "Chart.bundle.js".


Evidently the HTML generation doesn't take the possibility of a flatpak 
installation into account.  I suppose I should file a bug for this, but 
I wouldn't know where.


Thnaks for your help!

On 12.06.23 20:20, Vincent Dawans wrote:
Not that it might solve your underlying issue, but here is a reliable 
way to locate Chart.bundle.min.js assuming it was installed correctly 
with the rest of GC. This should work on any OS.


1. Open GC and go in menu Help - About
2. In that dialog window, look for the entry for GNC_DATA. It's the 
last one in the list. It should point to a directory path, for 
instance on Windows C:\Program Files (x86)\gnucash\share\gnucash but 
it will be different on ubuntu, etc.
3. Navigate to that directory using whatever means your OS gives you 
to do that (File Manager, console, etc). In that directory that 
GNC_DATA is pointing to, you should find a subdirectory called 
chartjs. That is where Chart.bundle.min.js should be located and if 
any html file is pointing to it that ia what the path should be.


On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user 
 wrote:


> On Jun 11, 2023, at 9:56 AM, Adrien Monteleone
 wrote:
>Is this a completely custom report or just a saved configuration?
If completely custom, you may want to try the -dev list.

This is a report I assembled from the options available in the GC
GUI (like the pie chart you successfully tested).
Unfortunately, I am not competent to use the programming
facilities behind GC's report generation.


> On Jun 11, 2023, John Ralls  wrote:
>It's most likely a javascript problem. Open the javascript
console in your browser and see if there's an error finding
Chart.bundle.min.js.
>The correct location is
/share/gnucash/chartjs/Chart.bundle.min.js where 
is where GnuCash is installed: /usr for a Linux package manager
installation, /Applications/Gnucash.app/Contents/Resources for a
macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc.
>
>You can fix the link by editing the html file in your favorite
text editor.

I have tried opening the exported HTML reports in Firefox on
Ubuntu and in Edge and Firefox on Windows.  Although the browser
consoles show errors, I don't see any pertaining to "
Chart.bundle.min.js", nor do I find any critical errors pertinent
to the report content.
The new HTML reports are looking for Chart.bundle.min.js in
/app/share/gnucash/chartjs/, but no such directory exists on the
Ubuntu system where GnuCash is installed.  In fact, there isn't
even an /app/ directory.  Perhaps this is due to GC being
installed as a flatpak.
Chart.bundle.min.js does not seem to exist on either system, so I
edited the HTML as you suggested, replacing the local path with
"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js;
but this did not improve matters.
However, my previously saved HTML reports from GC 2.xx also don't
display correctly, even though they contain no references to
Chart.bundle.min.js.  This suggests a more fundamental problem and
reveals my presumption that the HTML files could be used as
archives as naive.
I have a previously saved PDF file, which is, of course still
usable.  This will be my method going forward, although the lack
of a "scale to fit" option in the GC print dialog requires a bit
of trial and error to get a satisfactory PDF.

Many thanks to both of you for your support!

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Hard-Copy Report Output

2023-06-12 Thread Vincent Dawans
Not that it might solve your underlying issue, but here is a reliable way
to locate Chart.bundle.min.js assuming it was installed correctly with the
rest of GC. This should work on any OS.

1. Open GC and go in menu Help - About
2. In that dialog window, look for the entry for GNC_DATA. It's the last
one in the list. It should point to a directory path, for instance on
Windows C:\Program Files (x86)\gnucash\share\gnucash but it will be
different on ubuntu, etc.
3. Navigate to that directory using whatever means your OS gives you to do
that (File Manager, console, etc). In that directory that GNC_DATA is
pointing to, you should find a subdirectory called chartjs. That is where
Chart.bundle.min.js should be located and if any html file is pointing to
it that ia what the path should be.

On Mon, Jun 12, 2023 at 11:03 AM rsbrux via gnucash-user <
gnucash-user@gnucash.org> wrote:

> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone <
> adrien.montele...@lusfiber.net> wrote:
> >Is this a completely custom report or just a saved configuration? If
> completely custom, you may want to try the -dev list.
>
> This is a report I assembled from the options available in the GC GUI
> (like the pie chart you successfully tested).
> Unfortunately, I am not competent to use the programming facilities behind
> GC's report generation.
>
>
> > On Jun 11, 2023, John Ralls  wrote:
> >It's most likely a javascript problem. Open the javascript console in
> your browser and see if there's an error finding Chart.bundle.min.js.
> >The correct location is
> /share/gnucash/chartjs/Chart.bundle.min.js where  is where
> GnuCash is installed: /usr for a Linux package manager installation,
> /Applications/Gnucash.app/Contents/Resources for a macOS bundle, C:\Program
> Files (x86)\gnucash for Windows, etc.
> >
> >You can fix the link by editing the html file in your favorite text
> editor.
>
> I have tried opening the exported HTML reports in Firefox on Ubuntu and in
> Edge and Firefox on Windows.  Although the browser consoles show errors, I
> don't see any pertaining to " Chart.bundle.min.js", nor do I find any
> critical errors pertinent to the report content.
> The new HTML reports are looking for Chart.bundle.min.js in
> /app/share/gnucash/chartjs/, but no such directory exists on the Ubuntu
> system where GnuCash is installed.  In fact, there isn't even an /app/
> directory.  Perhaps this is due to GC being installed as a flatpak.
> Chart.bundle.min.js does not seem to exist on either system, so I edited
> the HTML as you suggested, replacing the local path with "
> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js; but
> this did not improve matters.
> However, my previously saved HTML reports from GC 2.xx also don't display
> correctly, even though they contain no references to Chart.bundle.min.js.
> This suggests a more fundamental problem and reveals my presumption that
> the HTML files could be used as archives as naive.
> I have a previously saved PDF file, which is, of course still usable.
> This will be my method going forward, although the lack of a "scale to fit"
> option in the GC print dialog requires a bit of trial and error to get a
> satisfactory PDF.
>
> Many thanks to both of you for your support!
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Hard-Copy Report Output

2023-06-11 Thread John Ralls
It's most likely a javascript problem. Open the javascript console in your 
browser and see if there's an error finding Chart.bundle.min.js. The correct 
location is /share/gnucash/chartjs/Chart.bundle.min.js where  
is where GnuCash is installed: /usr for a Linux package manager installation, 
/Applications/Gnucash.app/Contents/Resources for a macOS bundle, C:\Program 
Files (x86)\gnucash for Windows, etc.

You can fix the link by editing the html file in your favorite text editor.

Regards,
John Ralls



> On Jun 11, 2023, at 9:56 AM, Adrien Monteleone 
>  wrote:
> 
> Is this a completely custom report or just a saved configuration? If 
> completely custom, you may want to try the -dev list.
> 
> I just did a test and exported an Expense Pie Chart to HTML and opened it in 
> Firefox and it displayed as it should. If your chart/report isn't showing any 
> graphics at all, then I'd say it is an issue with the report itself, not 
> GnuCash. Since you were using it back in the days of version 2.19, I'd hazard 
> a guess that your report code needs to be updated as many changes with 
> respect to reports have been made since then.
> 
> And while I could get the Expense Pie Chart to print in landscape, I couldn't 
> get it to break properly or scale to the page, but I also didn't try too hard 
> and that may still be possible.
> 
> 
> Regards,
> Adrien
> 
> On 6/10/23 12:02 AM, rsbrux via gnucash-user wrote:
>> Thanks for the advice, but these (custom) reports consist of pie charts and 
>> an accompanying legend.
>> Without the graphics they are useless.
>> The Html export still included them as of GC 2.19.
> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Hard-Copy Report Output

2023-06-11 Thread Adrien Monteleone
Is this a completely custom report or just a saved configuration? If 
completely custom, you may want to try the -dev list.


I just did a test and exported an Expense Pie Chart to HTML and opened 
it in Firefox and it displayed as it should. If your chart/report isn't 
showing any graphics at all, then I'd say it is an issue with the report 
itself, not GnuCash. Since you were using it back in the days of version 
2.19, I'd hazard a guess that your report code needs to be updated as 
many changes with respect to reports have been made since then.


And while I could get the Expense Pie Chart to print in landscape, I 
couldn't get it to break properly or scale to the page, but I also 
didn't try too hard and that may still be possible.



Regards,
Adrien

On 6/10/23 12:02 AM, rsbrux via gnucash-user wrote:

Thanks for the advice, but these (custom) reports consist of pie charts and an 
accompanying legend.
Without the graphics they are useless.
The Html export still included them as of GC 2.19.


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Hard-Copy Report Output

2023-06-09 Thread rsbrux via gnucash-user
Thanks for the advice, but these (custom) reports consist of pie charts and an 
accompanying legend.
Without the graphics they are useless.
The Html export still included them as of GC 2.19.

--

Message: 1
Date: Fri, 9 Jun 2023 19:33:34 -0500
From: Adrien Monteleone 
To: gnucash-u...@lists.gnucash.org
Subject: Re: [GNC] Hard-Copy Report Output
Message-ID: 
Content-Type: text/plain; charset=UTF-8; format=flowed

Have you tried exporting the report as HTML, opening in a *browser*, and then 
printing from there? (I see you say it doesn't include 'graphics' 
but which graphics are you referring to? Most reports, rather than charts, 
don't contain any graphics save for perhaps table borders which render just 
fine for me in exported reports where used.)

Also consider select-all/copy/paste when viewing a report to a spreadsheet app 
and printing from it.

Either of those should work. (but I agree, printing from GnuCash should work 
too) Last I recall, the issue with GnuCash printing has to do with webkit. The 
details, I forget.

Regards,
Adrien

On 6/7/23 4:09 AM, rsbrux via gnucash-user wrote:
> I have never been able to get a satisdactory hard-copy output of 
> reports directly from Gnucash (running under Ubuntu).
> 
> In GnuCash 2.19 I was at least able to? export to HTML which gave me 
> more control over the printing process, and even allowed me to edit 
> the HTML if needed and had the added benefit of giving me a digital 
> copy to archive.
> 
> However, in GC 4.14 under Ubuntu Studio 22.04 LTS, the exported HTML 
> no longer includes the graphics, making many of the exported reports useless.
> 
> I have therefore again tried printing directly from GC, but the 
> printout is always in portrait mode, resulting in truncation of the output.
> 
> I have tried setting landscape mode in both the GC "Page Setup" dialog 
> and in the "Page Setup" dialog of the "Print Report" dialog, but both 
> are ignored.
> 
> I have also tried "Any Printer", "Print to LPR" and "MFCJ5955DW" (my 
> printer, connected via LAN) in the GC "Page Setup" dialog, to no effect.
> 
> I also treid "Print to file", but the resulting PDF is also portrait 
> mode and truncated, even though I specifed landscape in both the GC 
> "Page Setup" dialog and the "Page Setup" tab of the "Print Report" dialog.
> 
> How can I get a usable hard-copy report?


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Hard-Copy Report Output

2023-06-09 Thread Adrien Monteleone
Have you tried exporting the report as HTML, opening in a *browser*, and 
then printing from there? (I see you say it doesn't include 'graphics' 
but which graphics are you referring to? Most reports, rather than 
charts, don't contain any graphics save for perhaps table borders which 
render just fine for me in exported reports where used.)


Also consider select-all/copy/paste when viewing a report to a 
spreadsheet app and printing from it.


Either of those should work. (but I agree, printing from GnuCash should 
work too) Last I recall, the issue with GnuCash printing has to do with 
webkit. The details, I forget.


Regards,
Adrien

On 6/7/23 4:09 AM, rsbrux via gnucash-user wrote:
I have never been able to get a satisdactory hard-copy output of reports 
directly from Gnucash (running under Ubuntu).


In GnuCash 2.19 I was at least able to  export to HTML which gave me 
more control over the printing process, and even allowed me to edit the 
HTML if needed and had the added benefit of giving me a digital copy to 
archive.


However, in GC 4.14 under Ubuntu Studio 22.04 LTS, the exported HTML no 
longer includes the graphics, making many of the exported reports useless.


I have therefore again tried printing directly from GC, but the printout 
is always in portrait mode, resulting in truncation of the output.


I have tried setting landscape mode in both the GC "Page Setup" dialog 
and in the "Page Setup" dialog of the "Print Report" dialog, but both 
are ignored.


I have also tried "Any Printer", "Print to LPR" and "MFCJ5955DW" (my 
printer, connected via LAN) in the GC "Page Setup" dialog, to no effect.


I also treid "Print to file", but the resulting PDF is also portrait 
mode and truncated, even though I specifed landscape in both the GC 
"Page Setup" dialog and the "Page Setup" tab of the "Print Report" dialog.


How can I get a usable hard-copy report?


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.