Ejemplo n.º 1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string         sql = "", folios = "";
            CrystalReport1 comp_prorroga = new CrystalReport1();

            folios = Filtrar_Comprobantes();
            sql    = sql_comprobante_prorroga(folios);

            oleDbDataAdapter1.SelectCommand.CommandText = sql;
            oleDbDataAdapter1.Fill(dataSet11);
            comp_prorroga.SetDataSource(dataSet11);

            CrystalReportViewer1.ReportSource = comp_prorroga;
            ExportarPDF(comp_prorroga);
        }
Ejemplo n.º 2
0
 public virtual ReportDocument CreateReport()
 {
     CrystalReport1 rpt = new CrystalReport1();
     rpt.Site = this.Site;
     return rpt;
 }
Ejemplo n.º 3
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string sql="", folios ="";
            CrystalReport1 comp_prorroga = new CrystalReport1();

            folios = Filtrar_Comprobantes();
            sql = sql_comprobante_prorroga(folios);

            oleDbDataAdapter1.SelectCommand.CommandText = sql;
            oleDbDataAdapter1.Fill(dataSet11);
            comp_prorroga.SetDataSource(dataSet11);

            CrystalReportViewer1.ReportSource = comp_prorroga;
            ExportarPDF(comp_prorroga);
        }