Datestamp on Reports

mcmurchy1917-gnucash at yahoo.co.uk mcmurchy1917-gnucash at yahoo.co.uk
Mon Oct 7 16:54:40 EDT 2013


In my customised Balance report called  balsheet-eg.eguile.scm

I have this code -

<br clear="both">
<center>
<p><?scm:d opt-extra-notes ?>
<p><?scm
(display (date->string (current-date) "Printed at ~d/~m/~Y ~H:~M:~S"))
?>
</center>
<?scm (if (not css?) (begin ?>
  </table> <!-- hack for GTKHTML -->
<?scm )) ?>

</body>
</html>

<?scm
) ; enclosing let
?>


Regards





On Monday 07 Oct 2013 13:12:49 Derek Atkins wrote:
> Hi,
> 
> Michael Hendry <hendry.michael at gmail.com> writes:
> > Is there a simple way to add a datestamp to a report?
> > 
> > I've been doing some tidying up, and would like to be able to
> > distinguish a report I've just prepared from the current set of
> > accounts from one I made some years ago.
> > 
> > I have in mind something like "Balance Sheet 31/03/2011 - prepared on
> > 7/10/2013" in the heading, or perhaps a more discreet footer.
> > 
> > Am I missing something obvious?
> 
> No, you are not missing something.  None of the reports (AFAIK) have
> this feature.  You could certainly create it by adding the scheme code
> to print out the current date.
> 
> > I've scanned the documentation and the list and can't find anything
> > relevant.
> > 
> > I could export and edit an HTML version of the report, or I could
> > export it and print it from my browser with a datestamped footer
> > enabled, but bitter experience tells me I won't do this reliably!
> > 
> > Over the years I've blundered around in the foothills of several
> > computer languages, never mastering the heights of any, and I really
> > don't want to have to apply the same suck-it-and-see approach to
> > Scheme and Guile if I can avoid it.
> > 
> > Michael
> > 
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> 
> -derek


More information about the gnucash-user mailing list