private void active_mov_docsemitido()
        {
            try
            {
                var path = string.Empty;
                var directorios = Application.StartupPath.Split('\\');
                if (directorios.Length > 0)
                {
                    path = directorios[0] + "\\" + directorios[1];
                }
                var reporte_docsemitido = new CR_mov_docsemitidos();
                reporte_docsemitido.DataDefinition.FormulaFields["empresaname"].Text = "'EMPRESA: " + VariablesPublicas.EmpresaName.Trim() + "'";
                reporte_docsemitido.DataDefinition.FormulaFields["empresaruc"].Text = "'RUC: " + VariablesPublicas.EmpresaRuc.Trim() + "'";
                reporte_docsemitido.DataDefinition.FormulaFields["fechdoc"].Text = "'DE: " + fechdocini.Trim().Substring(0, 10) + "  AL:" + fechdocfin.Trim().Substring(0, 10) + "'";
                reporte_docsemitido.DataDefinition.FormulaFields["almacen"].Text = "'" + VariablesPublicas.EmpresaTipo + "'";

                if (moduloid.Trim() == "0810")
                {
                    reporte_docsemitido.DataDefinition.FormulaFields["name"].Text = "'TIENDA : " + VariablesPublicas.Local + "  - " + VariablesPublicas.nombrelocal + "'";
                }
                else
                {
                    reporte_docsemitido.DataDefinition.FormulaFields["name"].Text = "'LOCAL : " + VariablesPublicas.Local + "  - " + VariablesPublicas.nombrelocal + "'";
                }

                if (moduloid.Trim() == "0320")
                {
                    reporte_docsemitido.DataDefinition.FormulaFields["varitems"].Text = "'ROLLOS'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varcantidad"].Text = "'METRAJE'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varitemst"].Text = "'TOTAL ROLLOS:'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varcantidadt"].Text = "'TOTAL METRAJE:'";
                }
                else
                {
                    reporte_docsemitido.DataDefinition.FormulaFields["varitems"].Text = "'ITEMS'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varcantidad"].Text = "'CANTIDAD'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varitemst"].Text = "'TOTAL ITEMS:'";
                    reporte_docsemitido.DataDefinition.FormulaFields["varcantidadt"].Text = "'TOTAL CANTIDAD:'";
                }

                reporte_docsemitido.SetDataSource(Movimiento_mov_docsemitido());
                CrsRptMain.ReportSource = reporte_docsemitido;
                CrsRptMain.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CR_mov_docsemitidos rpt = new CR_mov_docsemitidos();
     rpt.Site = this.Site;
     return rpt;
 }