예제 #1
0
        public virtual ReportDocument CreateReport()
        {
            CrystalReportContrato rpt = new CrystalReportContrato();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string sql;
            string post_ncorr;

            post_ncorr = Request.QueryString["post_ncorr"];
            //post_ncorr = "11865";
            //post_ncorr = "11863";
            post_ncorr = "12187";

            //string[] informe = new string[4] {"ORIGINAL","DUPLICADO","TRIPLICADO","CUADRIPLICADO"};
            string[] informe = new string[2] {
                "ORIGINAL", "DUPLICADO"
            };
            CrystalReportContrato reporte = new CrystalReportContrato();

            for (int i = 0; i < 2; i++)
            {
                sql = EscribirCodigo(post_ncorr, i, informe[i]);

                oleDbDataAdapter1.SelectCommand.CommandText = sql;
                oleDbDataAdapter1.Fill(datosContrato1);
                //Response.Write(informe[i]+"**<br>");
                //Response.Write(sql+"<br><br>");
            }
            //Response.End();
            reporte.SetDataSource(datosContrato1);
            VerContrato.ReportSource = reporte;
            ExportarPDF(reporte);
        }
예제 #3
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string sql;
            string post_ncorr;
            post_ncorr = Request.QueryString["post_ncorr"];
            //post_ncorr = "11865";
            //post_ncorr = "11863";
            post_ncorr = "12187";

            //string[] informe = new string[4] {"ORIGINAL","DUPLICADO","TRIPLICADO","CUADRIPLICADO"};
            string[] informe = new string[2] {"ORIGINAL","DUPLICADO"};
            CrystalReportContrato reporte = new CrystalReportContrato();
            for (int i=0; i<2; i++)
            {
                sql = EscribirCodigo(post_ncorr, i, informe[i]);

                oleDbDataAdapter1.SelectCommand.CommandText = sql;
                oleDbDataAdapter1.Fill(datosContrato1);
                //Response.Write(informe[i]+"**<br>");
                //Response.Write(sql+"<br><br>");
            }
            //Response.End();
            reporte.SetDataSource(datosContrato1);
            VerContrato.ReportSource = reporte;
            ExportarPDF(reporte);
        }
예제 #4
0
 public virtual ReportDocument CreateReport()
 {
     CrystalReportContrato rpt = new CrystalReportContrato();
     rpt.Site = this.Site;
     return rpt;
 }