Object library that is used by other applcations in the company that need report generation. If follows the model of using NPOI and excep templates to generate excel reports
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
public class ModelReport : ModelReportBaseObject
to
public class SampleReport : SummitReportBaseObject
public ModelReport() : base(@"ModelReport\ModelReportTemplate.xlsx")
to
public SampleReport() : base(@"SampleReport\SampleReportTemplate.xlsx")
To Test this, go to SummitReports.Tests class UWRelCashFlowGenTests.cs copy and paste function ModelReportGenTestOk (be sure the include [fact] function attribute) It should look like this, rename it to SampleReportGenTestOk.
[Fact]
public async void SampleReportGenTestOk()
{
SummitReportSettings.Instance.ConnectionString = "data source=summittest.database.windows.net;initial catalog=MARS;user=simsa;password=D3n^3r#$";
var rpt = new SummitReport();
var generatedFIleName = await rpt.GenerateAsync(13);
}
go To Test Explorer (Menu bar Test->Windows->Test Explorer), right click and select the test If this runs successfully, open windows explorer and type %TEMP% and press enter (this will open up your temp directory which should have your newly geneated report).
To create the nuget package for this, navigate to the solution root and type powershell, type ./build.ps1 and press enter.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Please see the xunit .Tests project included to see samples of how this is used.
This project was design to be hosted and distributed with nuget.com.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details
Many thanks to the following projects that have helped in this project