Extra content added to printed invoices

Derek Atkins warlord at MIT.EDU
Sun Oct 7 09:30:45 EDT 2007


Robert Heller <heller at deepsoft.com> writes:

>> > Also: is there anything like an API document (for either 2.0 or 2.2)? 
>> > Before I start messing with the code it would be nice to know what it
>> > all means...
>> 
>> Sure!  http://cvs.gnucash.org/docs/HEAD/
>
> I could not find any useful *scheme* API docs here, or at least I am
> not sure what to look for.  Specificly, what do the *all* arguments to
> gnc:html-table-set-cell! mean (I can guess what *some* of them mean)? 
> It appears to generate a <TD>..</TD> tag, but I am not sure what all of
> the auguments mean. I am programming in the dark by (undocumented!)
> example (cutting and pasting other code and generally guessing).

Ahh, sorry, there's no documentation for the scheme-only functions,
except what exists as comments in the sources, or the sources itself.
The only docs are for the C API, which in 2.2 is also the
scheme-wrapped C API.

>> > Also: is there any special magic to get the system to recognise
>> > additional new reports or is just dropping the file in the proper
>> > directory suffiencent?
>> 
>> You need to get it loaded.  You can do that either in
>> $HOME/.gnucash/config.user or by modifying the standard-reports.scm
>> or business-reports.scm to load your report too.
>
> What *exactly* do I need to put in $HOME/.gnucash/config.user (or
> $HOME/.gnucash/config.auto?)?  I included the line in
> $HOME/.gnucash/config.auto: 
>
> (load-from-path "/home/heller/gnucash/stylesheet-dws.scm")
>
> Which I'm *guessing* will load the named scheme file, but I don't get any
> errors nor any indication that this file is in fact being loaded.  I'm
> hoping that this code will add an additional stylesheet template, but it
> does not.  It is a copy of stylesheet-fancy.scm that I hacked (yes, I
> changed the names).  I'll attach the file with this message.  I don't
> want to hack on the files under /usr/share/gnucash -- I don't want to
> randomly clobber my GnuCash installation, until I am sure my code works
> properly. 

Did I say "gnucash.auto"?  Where did you get that from?
You REALLY want to put this into gnucash.user, NOT gnucash.auto.
But yes, that's the code you want.  And I've verified that it
does work at least once before so I don't plan to do the test
myself again.

-derek

PS: What was the file you attached, and what were you expecting me
to do with it?
-- 
       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