Adding custom reports

Derek Atkins warlord at MIT.EDU
Wed Jun 16 12:50:55 EDT 2004


John Pettigrew <john at pettigrew.org.uk> writes:

> In a previous message, Derek Atkins <warlord at MIT.EDU> wrote:
>
>> (primitive-load "/path/to/my/report")
>> (primitive-load "/path/to/config.auto")
>
> One thing to add to this - the report path entered above must *not* contain
> the .scm extension or gnucash will fail to load. Without the extension, it
> works.

This is not true..  Actually, if you do NOT include the .scm it wont
load the file, which is why it's not being included in the your menu.
However, there is clearly a symbol problem, and I don't know why.
Something isn't pulling in the right set of symbols.  At first it was
complaining about gnc:extension-type -- so I pulled in the gnome-utils
library.  Then it started to complain about gw:void* which
unfortunately is in some core g-wrap library, but I'm not sure which
one, yet.

But this is the cause of your error...

> My problem now is working out how on earth to get the report included in the
> menu so that I can select it! I've changed the names from the old report upon
> which this is based (Fancy invoice) to new values ("Fancy Invoice" -> "Invoice
> for JCS" and "fancy-invoice" -> "jcs-invoice") but I'm still not getting it to
> appear. I can see a section near the end of the report which looks like it's
> inserting an entry into the Business reports submenu, but I get nothing from
> this report  :-(

-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