public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CHM_INVENTAIRE rpt = new CHM_INVENTAIRE(); rpt.Site = this.Site; return(rpt); }
private void button2_Click(object sender, EventArgs e) { ReportDocument rpt = new CHM_INVENTAIRE(); //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_INVENTAIRE.IMPRIMER_SAISIE_INVENTAIRE(_code_inventaire)); rpt.SetDataSource(CLIENT_APP_PARAM.gcws.IMPRIMER_SAISIE_INVENTAIRE(_code_inventaire)); CHM_ETATS f = new CHM_ETATS(); f.CHM_Aperçu_document.ReportSource = rpt; f.WindowState = FormWindowState.Maximized; f.ShowDialog(); }