Monday, December 16, 2024

Latest additions to the blog manager program

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.



This day in history:

Blog #
Date
TitleTags
15116/12/2008
Firebird/2Firebird
78516/12/2014
A feral system under my noseERP, DBA, Excel

No comments: