public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PreviewPurchaseInvoice rpt = new PreviewPurchaseInvoice(); rpt.Site = this.Site; return(rpt); }
private void formPreviewPI_Load(object sender, EventArgs e) { PreviewPurchaseInvoice rep = new PreviewPurchaseInvoice(); rep.SetDatabaseLogon("export", "import", "orcl", ""); rep.SetParameterValue("ID_pi", form.id_pi); crystalReportViewer.ReportSource = rep; }