public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportProduct rpt = new CrystalReportProduct();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void 报表预览ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CrystalReportProduct ccrp = new CrystalReportProduct();

            ccrp.SetDataSource(dataset.Tables[0]);
            CReprotFrm crfrm = new CReprotFrm(ccrp);

            crfrm.Show();
        }
Exemple #3
0
 public CReprotFrm(CrystalReportProduct crp)
 {
     InitializeComponent();
     crystalReportViewer1.ReportSource = crp;
 }