public void CreatePdf_MasterDetailDataSet_ValidWordFile() { var dataset = CreateMasterDetailDataset(); var reportDefinition = new ReportFromFileDefinitionFacade(dataset, "Reports\\MasterDetailSample\\Template.rdlc"); var file = Reports.Generator.CreateFile(reportDefinition, Generator.FileTypes.WORD); SaveFile(file, "MasterDetailDataSet.doc"); }
public static byte[] CreateFile(ReportFromFileDefinitionFacade report, FileTypes outputType = FileTypes.PDF) { var localReport = GetNewLocalReport(report.ReportDataSet); localReport.ReportPath = report.DefinitionFilePath; return localReport.Render(outputType.ToString()); }
public void CreatePdf_SimpleDataSet_ValidPdfFile() { var dataset = CreateSample1Dataset(); var reportDefinition = new ReportFromFileDefinitionFacade(dataset, "Reports\\Sample1\\Template.rdlc"); var file = Reports.Generator.CreateFile(reportDefinition); SaveFile(file, "SimpleDataSet.pdf"); }