예제 #1
0
        private void JDRAP01_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            JDRAP01_01 detail1 = xrSubreport1.ReportSource as JDRAP01_01;
            JDRAP01_02 detail2 = xrSubreport2.ReportSource as JDRAP01_02;


            DevExpress.XtraReports.UI.XtraReport rptTmp = (DevExpress.XtraReports.UI.XtraReport)sender;

            detail1.DataSource = rptTmp.DataSource;
            detail1.DataMember = "dt2_All";

            detail2.DataSource = rptTmp.DataSource;
            detail2.DataMember = "dt3_All";
        }
예제 #2
0
        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            JDRAP01_01 detail1 = xrSubreport1.ReportSource as JDRAP01_01;
            JDRAP01_02 detail2 = xrSubreport2.ReportSource as JDRAP01_02;


            detail1.FilterString = "";
            detail2.FilterString = "";


            detail1.paramID1.Value = GetCurrentColumnValue("DCCOUPON_NO");
            detail1.FilterString   = "[DCCOUPON_NO] = ?paramID1";

            detail2.paramID2.Value = GetCurrentColumnValue("DCCOUPON_NO");
            detail2.FilterString   = "[DCCOUPON_NO] = ?paramID2";
        }