As we're almost at the end of another (not particularly good) year, my thoughts have been turning to an end-of-the-year blog. Apart from remembering this year, I thought that it would be nice if I could show how my blogging habits have changed over the years (I've been at this for over 19 years).
A few months ago, I wrote a 'blogs by month' query, so I copied this to a 'blogs by year' and in doing so simplified a few matters. When I had the graph displayed, I thought that it would be helpful if I could save the graph as an image. The graph has a built-in method for printing, but this isn't what I want.
I combined two snippets of code - one for creating the bitmap of the chart, and one for converting the bitmap to jpg - and now I have the ability to save any graph displayed as a jpg. The filename will be the caption of the form, e.g. Blogs per month between 01/01/2024 and 31/12/2024.jpg, but the forward slashes in the dates create a problem. I used the stringreplace function in Delphi to convert them to dashes.
Title | Tags | ||
---|---|---|---|
151 | Firebird/2 | Firebird | |
785 | A feral system under my nose | ERP, DBA, Excel |
No comments:
Post a Comment