"Mandaty" is a commercial database program of mine done in Delphi using Firebird. It was done in about 6 last months of year 2004 and January 2005. Well, actually, some work is still planned to be done. But the program is considered almost finished now, and it's used, and I already received my money for it :).
No, full sources of this program are not available, and they will not be available soon. I plan to release them when I will no longer want to (or be able to :) make any more money from it. But not yet. Anyway, they wouldn't be of much use to many people, since the subject is rather specific to Polish administration. But, of course, a lot of code written for this project is generally usable, especially for people using Firebird and/or Delphi. There's a simple SQL preprocessor that is generally useful, the database of this project demonstrates some nice things that can be achieved with Firebird, there are also some valuable extensions to Delphi components (database and non-database related). And some more.
So I'm going to share some of my code on this page.
For now, I present here code of KambiDBGridExport unit. This is a modified version of JVCL unit JvDBGridExport. Yes, I am actually forced to present it's sources here since JVCL is distributed on terms of Mozilla Public License. But, you know, I don't mind publishing my sources, since I already published many of them on terms of GNU GPL on these pages. Download sources of KambiDBGridExport.pas unit. (19 KB) Note that it requires unit KambiUtils from my sources on general sources page. Included is also a patch between original JvDBGridExport unit, for your convenience.
I didn't contacted JVCL members to merge my changes/fixes into original JvDBGridExport.pas unit, because 1. my version requires my KambiUtils unit, that is quite large (removing dependancy on KambiUtils is possible but not really worth the trouble for me) 2. I removed some functionality from original unit (HandleException, Silent, LastExceptionMessage) that I consider simply a broken design. If you think that it would be worth the trouble to communicate with jvcl developers and make appropriate fixes to original JvDBGridExport then 1. you are right and 2. feel free to do so.
I plan to put here some demo version of the program, and some facts about it. But it's not done yet. Contact me via email if you're interested in this program and you would like to get more information.