display book path in report

Derek Atkins warlord at MIT.EDU
Wed Feb 15 10:52:32 EST 2017


Sébastien de Menten <sdementen at gmail.com> writes:

> hello,
>
> Is it possible to have the path of the gnucash book (c:\...\mybook.gnucash)
> displayed in the reports so that I can easily identify to which book a
> report relates (e.g. once printed) ?

You could use qof_session_get_file_path() and/or qof_session_get_url()
to obtain that information from the current session.  C.f. http://code.gnucash.org/docs/MAINT/group__Backend.html#gaef36a80fef74a21750fe98ba24a2e19c

> sebastien

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list