public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     HojaBultoTallasReporte rpt = new HojaBultoTallasReporte();
     rpt.Site = this.Site;
     return rpt;
 }
示例#2
0
         public ActionResult reportHojaBultosTallas(ModelCapas model)
         {
             if (repositorio.existCorte(model.codigoCorte))
             {
                 var data = repositorio.getReporteImpresionHojaBultoTallas(model.codigoCorte);
                 var cupones = new HojaBultoTallasReporte();
                 cupones.SetDataSource(data);

                 var stream = cupones.ExportToStream(ExportFormatType.PortableDocFormat);

                 return File(stream, "application/pdf", string.Format("{0}-{1}{2}", "HojoBultosTallas", model.codigoCorte, ".pdf"));
             }
             return RedirectToAction("imprimirReportHojaBultosTalla");
         }