Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptmonthfeecombination rpt = new rptmonthfeecombination();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.RowCount > 0)
     {
         ds.WriteXmlSchema(@"" + Connection.GetAccessPathId() + @"Barcodes\a\rptFeeByMonthCollection.xsd");
         rptmonthfeecombination fr1 = new rptmonthfeecombination();
         fr1.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
         fr1.PrintOptions.PaperSize        = CrystalDecisions.Shared.PaperSize.PaperLetter;
         fr1.SetDataSource(ds);
         ShowAllReports s1 = new ShowAllReports();
         s1.crystalReportViewer1.ReportSource = fr1;
         fr1.SetParameterValue("Session", "Session: " + cmbSession.Text);
         if (chkClass.Checked)
         {
             fr1.SetParameterValue("ReportTitle", "Fee Collection For Class- " + cmbclassname.Text);
         }
         else
         {
             fr1.SetParameterValue("ReportTitle", "Fee Collection");
         }
         s1.Show();
     }
 }