Report Manager for Dot Net

Basics

The dot net version of Report Manager is a full translation from Delphi to C# of the reporting engine. The port is complete, but some features are still not implemented. Libraries are provided so you can link easily your reports with your application. The .Net native port of the Report Designer is still in progress so, the design and test of the reports are done by the classic designer (32bit or 64bit)

How to design reports for .Net

Design the report normally but:

Missing parts

Different behaviour

Using the library

To use the libraries provided, you should include a reference to them in your project. It' better if you include the .csproj to your project and then a reference to that project so you can debug any problem deeper.

Documentation is available

This is sample code to execute a report, a portion of the sample provided testinglib.exe.

using Reportman.Drawing;

using Reportman.Drawing.Forms;

using Reportman.Reporting;

using Reportman.Reporting.Forms;

Report rp=new Reportman.Report();
rp.LoadFromFile(EFile.Text);
rp.ConvertToDotNet();

// Set the provider factory for each database, user the invariant name of the factory (defined in mahine.config)

rp.DatabaseInfo[0].ProviderFactory = "YourDatabasefactory";

// As an alternative you can provide an already stablished connection and transaction

// rp.DatabaseInfo[0].Connection =YourIDBConnection

// rp.DatabaseInfo[0].Transaction=YourIDBTransacion


if (pdf)
{
rp.AsyncExecution=false;
PrintOutPDF printpdf = new PrintOutPDF();
printpdf.FileName=pdffilename;
printpdf.Compressed=compressedpdf;
printpdf.Print(rp.MetaFile);
}
else
{
rp.AsyncExecution=asyncexecution;
if (ParamsForm.ShowParams(rp)
{
PrintOutWinForms prw = new PrintOutWinForms();
prw.Preview = preview;
prw.SystemPreview=systempreview;
prw.ShowPrintDialog=showprintdialog;
prw.Print(rp.MetaFile);
}
}