Using the DaReport in an application
First, add a reference to daReport.dll file (provided in the
distribution) to your project. If you feel like it, you can also put
this component in your Control Toolbar.
Second, add an instance of
DaPrintDocument to your module (form); if you have previously attached it in your control toolbar, simply drag it to your form: private daReport.DaPrintDocument daPrintDocument =
new daReport.DaPrintDocument();
At the point where you wish to print some report, set the template file and fill in the parameters (if any):
daPrintDocument.setXML("reportStatic.xml");
Hashtable parameters = new Hashtable();
parameters.Add("author","Predrag Dukanac");
daPrintDocument.SetParameters(parameters);
Using tables
Take a look at reportStatic.xml, reportDynamic.xml, reportCharts.xml and the ReportTest project (all in the download package) for a deeper insight.
|