Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            LetterOfRequestTOR rpt = new LetterOfRequestTOR();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
 public void loadLetterOfRequest(List<Customer> selectedStudents, String schName, String schAdd, String attained, String schYear)
 {
     LetterOfRequestTOR rpt = new LetterOfRequestTOR();
     DataSetStudents ds = new DataSetStudents();
     foreach (Customer c in selectedStudents)
     {
         DataRow cRow = ds.Student.NewRow();
         cRow["CustomerID"] = c.CustomerID;
         cRow["CustomerName"] = c.CustomerName;
         cRow["FirstName"] = c.FirstName;
         cRow["LastName"] = c.LastName;
         cRow["Gender"] = c.Gender;
         cRow["EmailAddress"] = c.EmailAddress;
         cRow["Level"] = c.Level;
         cRow["Section"] = c.Section;
         ds.Student.Rows.Add(cRow);
     }
     rpt.DataDefinition.FormulaFields["schoolName"].Text = "\"" + schName+"\"";
     rpt.DataDefinition.FormulaFields["schoolAddress"].Text = "\"" + schAdd + "\"";
     rpt.DataDefinition.FormulaFields["attainment"].Text = "\"" + attained + "\"";
     rpt.DataDefinition.FormulaFields["schoolYear"].Text = "\"" + schYear + "\"";
     rpt.SetDataSource(ds);
     crystalReportViewer1.ReportSource = rpt;
     crystalReportViewer1.Refresh();
 }
Ejemplo n.º 3
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     LetterOfRequestTOR rpt = new LetterOfRequestTOR();
     rpt.Site = this.Site;
     return rpt;
 }