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

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 private void Generate_Click(object sender, RoutedEventArgs e)
 {
     if ((bool)bestSelling.IsChecked)
     {
         CrystalProductRatingMain rptProdukMain = new CrystalProductRatingMain();
         rptProdukMain.SetDatabaseLogon("proyekpcs", "proyekpcs", "orcl", "");
         rptProdukMain.SetParameterValue("namaKategori", category.Text);
         viewerCR.ViewerCore.ReportSource = rptProdukMain;
     }
     else if ((bool)unverified.IsChecked)
     {
         CrystalUnverifiedProduct rptUnverif = new CrystalUnverifiedProduct();
         rptUnverif.SetDatabaseLogon("proyekpcs", "proyekpcs", "orcl", "");
         viewerCR.ViewerCore.ReportSource = rptUnverif;
     }
 }