Esempio n. 1
0
        //public static XtraReport CreateMasterDetailReport()
        //{
        //    XtraReport report = new XtraReport();

        //    DetailBand detail = new DetailBand();
        //    detail.Height = 30;
        //    report.Bands.Add(detail);

        //    DetailReportBand detailReport1 = new DetailReportBand();
        //    report.Bands.Add(detailReport1);

        //    DetailBand detail1 = new DetailBand();
        //    detail1.Height = 30;
        //    detailReport1.Bands.Add(detail1);

        //    DetailReportBand detailReport2 = new DetailReportBand();
        //    detailReport1.Bands.Add(detailReport2);

        //    DetailBand detail2 = new DetailBand();
        //    detail2.Height = 30;
        //    detailReport2.Bands.Add(detail2);

        //    report.DataSource = ReportsDataBL.GetSupplierData();
        //    detailReport1.DataMember = "Products";
        //    detailReport2.DataMember = "Products.OrderDetails";

        //    detail.Controls.Add(CreateBoundLabel("CompanyName", Color.Gold, 0));
        //    detail1.Controls.Add(CreateBoundLabel("Products.ProductName", Color.Aqua, 100));
        //    detail2.Controls.Add(CreateBoundLabel("Products.OrderDetails.Quantity", Color.Pink, 200));

        //    return report;
        //}

        public static XtraReport CreateCombinedReport()
        {
            // Create the 1st report and generate its document.
            QAGeneralInstrumentDataReport report1 = CreateQAGeneralInstrumentDataReport();

            report1.CreateDocument();

            // Create the 2nd report and generate its document.
            InstrumentConfigurationRpt report2 = CreateInstrumentConfigurationReport();

            report2.CreateDocument();

            // Create the 3rd report and generate its document.
            GoniometerScanGraphicsRpt report3 = CreateGoniometerScanGraphicsReport();

            report3.CreateDocument();

            // Add all pages of the 2nd report to the end of the 1st report.
            report1.ModifyDocument(x => {
                x.AddPages(report2.Pages);
                x.AddPages(report3.Pages);
            });

            // Reset all page numbers in the resulting document.
            report1.PrintingSystem.ContinuousPageNumbering = true;

            return(report1);
        }
Esempio n. 2
0
        public static InstrumentConfigurationRpt CreateInstrumentConfigurationReport()
        {
            InstrumentConfigurationRpt report = new InstrumentConfigurationRpt();

            report.DataSource = GetICHeaderData();

            return(report);
        }