GroupDocsGists
10/24/2017 - 1:35 PM

Showcases-GroupDocs.ReportGenerator-GroupDocs.ReportGenerator.BusinessLayer-ReportGenerator-GenerateReportShowcase.cs

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
/// <summary>
/// Generates the report by using dataset.
/// </summary>
/// <param name="ds"></param>
public void GenerateReportDB(DataSet ds)
{
    try
    {
        License lic = new License();
        //lic.SetLicense(_LicensePath);
        //Instantiate DocumentAssembler class
        DocumentAssembler assembler = new DocumentAssembler();
        //Call AssembleDocument to generate Common List Report in open document format
        assembler.AssembleDocument(_TemplateSourcePath, _ReportDestinationPath, ds);
    }
    catch (Exception ex)
    {
        throw ex;
    }
}