Example #1
0
        private void PrintBtn_Click(object sender, EventArgs e)
        {
            lBaseReport rpt = null;

            rpt = new lCurInterPaymentReport();
#if false
            if (paymentRadio.Checked)
            {
                switch (paymentRptType.SelectedIndex)
                {
                case (int)receiptsRptType.byDays:
                    rpt = new lDaysReport(startDate.Value, endDate.Value);
                    break;

                case (int)receiptsRptType.byWeek:
                    rpt = new lWeekReport(startDate.Value, endDate.Value);
                    break;

                case (int)receiptsRptType.byMonth:
                    rpt = new lMonthReport(startDate.Value, endDate.Value);
                    break;
                }
            }
            else if (buildingRadio.Checked)
            {
                string buildingName = "xây chánh điện";
                rpt = new lBuildingReport(buildingName, startDate.Value, endDate.Value);
            }
#endif
            if (rpt != null)
            {
                rpt.Run();
                rpt.Dispose();
            }
        }
Example #2
0
        static public lBaseReport crtReport(lBaseReport m_report)
        {
            lBaseReport newRpt = new lBaseReport();

            newRpt.m_rcName   = m_report.m_rcName;
            newRpt.m_viewName = m_report.m_viewName;
            newRpt.m_rdlcPath = m_report.m_rdlcPath;
            newRpt.m_dsName   = m_report.m_dsName;
            newRpt.m_pdfPath  = "report.pdf";
            return(newRpt);
        }