コード例 #1
0
        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");
        }
コード例 #2
0
        public static byte[] CreateFile(ReportFromFileDefinitionFacade report, FileTypes outputType = FileTypes.PDF)
        {
            var localReport = GetNewLocalReport(report.ReportDataSet);

            localReport.ReportPath = report.DefinitionFilePath;

            return localReport.Render(outputType.ToString());
        }
コード例 #3
0
        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");
        }