Today I had played with Report Manager and HMG.
I tested with dbf files and MySQL database tables with queries and found it very much useful. I think, report manager can be used as a superb report tool for HMG with various features. Basically it is an Open Source Tool.
I had first used the ReportMan.ocx as an activeX control and satisfied with the operations. But, we have to install the ReportMan.ocx in c:\windows\system32 directory with the command "regsvr32 Reportman.ocx"
Then, as suggested in the site, I had created libreportman.a with the help of impdef and dlltool utilities. I had created demo file for HMG and found it working. (I don't know why the program crashes when we cancel preview/print button. Otherwise it works nice. I am sure 'C' Gurus in the forum can easily solve this.)
Now, I attach a file called reportman.zip with this post. It contains
- two demo programmes (demo.prg and demo_ocx.prg),
- one sample.rep (report config file for the report manager created using report designer GUI),
- one supmast.dbf (a sample dbf),
- two library files (libreportman.a - original library file, libreportman1.a - library to link Harbour function calling & C (I am afraid this is where I made a mistake!)),
- Sources for creating libreportman1.a
To install this excellent tool, do the following:
- Just download the designer, reportman.ocx in a whole bundle from Sourceforge.net site (18 MB) - It is worth downloading this. Don't worry!
- Run the setup file
- Copy the ReportMan.ocx stored in c:\program files\report manager to c:\windows\system32 folder and register the same using "regsvr32 Reportman.ocx"
- In DataSource definitions (controlpanel -> Datasources or controlpanel -> Administrative Tools->DataSources) add a datasource for dbf with the name of the connection string as 'dbf' and pointing the directory where supmast.dbf file is unzipped.
To test the tool, do the following:
- compile and run demo_ocx.prg.
- Another way is, copy libreportman.a and libreportman1.a attached with this zip in c:\hmg\lib folder and compile demo.prg by IDE after mentioning reportman;reportman1 in the additional library field.
If anything doesn't work, then I might have missed out something. Please tell me about your experience.
Some screen shots can be seen from here.
