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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 public frmImpDetallesFormulas(DataSet _DetallesFormulas, string cantidad)
 {
     InitializeComponent();
     if (cantidad == "U")
     {
         if (ComprobarTablas(_DetallesFormulas).Equals(""))
         {
             Reportes.rptFormulasV2 reporte = new Reportes.rptFormulasV2();
             reporte.SetDataSource(_DetallesFormulas);
             this.crystalReportViewer1.ReportSource = reporte;
             this.crystalReportViewer1.RefreshReport();
         }
         else
         {
             Reportes.rptFormulaDetails reporte = new Reportes.rptFormulaDetails();
             reporte.SetDataSource(_DetallesFormulas);
             this.crystalReportViewer1.ReportSource = reporte;
             this.crystalReportViewer1.RefreshReport();
         }
     }
     else
     {
         //string msj = ComprobarTablas(_DetallesFormulas);
         //if (!msj.Equals(""))
         //{
         //    MessageBox.Show("Las siguientes fórmulas: " + msj + "\nNo tienen productos terminados, esto ocasionará que el formato de impresión tenga desperfectos.", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information);
         //}
         Reportes.rptFormulasV2 reporte = new Reportes.rptFormulasV2();
         reporte.SetDataSource(_DetallesFormulas);
         this.crystalReportViewer1.ReportSource = reporte;
         this.crystalReportViewer1.RefreshReport();
     }
 }