gnucash report writing resources for beginners?

John Steele Scott toojays at toojays.net
Tue Jan 6 06:00:57 CST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 6 Jan 2004 02:03, Derek Atkins wrote:
> > 1) Is there any kind of interactive interpreter built into gnucash which
> > one could use to execute Scheme code on the fly?
>
> "gnucash-env guile"

This might be able to help me. So far, I've found that I can put in the 
following to generate a "Hello, World" report:

(use-modules (gnucash gnc-module))
(gnc:module-load "gnucash/engine" 0)
(use-modules (gnucash report report-system))
(use-modules (gnucash report report-gnome))
(use-modules (gnucash app-utils))
(use-modules (gnucash report hello-world))
(gnc:report-run (gnc:make-report "Hello, World"))

However, this would be more useful if I could pop up the options dialog. It 
looks to me like I should be able to do it with:

(gnc:report-edit-options (gnc:find-report 0))

But that always segfaults. Do I need to first call something to initialise the 
GUI in some way?

By the way, after messing with this stuff, it looks like my config file must 
have been destroyed somehow, because I had to set the default currency back 
to AUD (from USD) when I next tried to run gnucash normally.

cheers,

John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Messages with missing or bad signatures may have been forged or modified in transit!

iD8DBQE/+qNx0BW7kPcXjRURAhtIAKC/34N+f9hez9NXkb++iAy23BJj3gCg5x/P
+ck3pYTPluir+gTm8pMOT04=
=dSdm
-----END PGP SIGNATURE-----


More information about the gnucash-user mailing list