예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalPengiriman rpt = new CrystalPengiriman();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 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)
     {
     }
 }