public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalPengiriman rpt = new CrystalPengiriman(); rpt.Site = this.Site; return(rpt); }
private void Generate_Click(object sender, RoutedEventArgs e) { try { if (month.SelectedIndex != -1) { DateTime bulanRaw = new DateTime(2000, month.SelectedIndex + 1, 1); CrystalPengiriman rptPengiriman = new CrystalPengiriman(); rptPengiriman.SetDatabaseLogon("proyekpcs", "proyekpcs", "orcl", ""); rptPengiriman.SetParameterValue("monthName", bulanRaw); viewerCR.ViewerCore.ReportSource = rptPengiriman; } else { MessageBox.Show("Please Specify Which Month to Show"); } } catch (Exception) { } }