Exemplo n.º 1
0
        private void IrAPaginaTicket()
        {
            navFrameMenuInicial.SelectedPage = navPageTicket;

            rpt = new rptTicket();
            rpt.CargarDatos(Pro_Ticket_Generado, Pro_Conexion);
            rpt.pic_Logo.Image        = Image.FromFile(ConfigurationSettings.AppSettings["RUTA_LOGO_INSTITUCION"]);
            rpt.lblNombreAgencia.Text = Pro_NombreAgenciaServicio;


            try
            {
                splashScreenManager1.ShowWaitForm();
                rpt.CreateDocument();
                documentViewer1.DocumentSource = rpt;

                splashScreenManager1.CloseWaitForm();


                tmrTiempoVisualizacionTicket.Start();
                ReportPrintTool v_print_tool = new ReportPrintTool(rpt);
                v_print_tool.Print(ConfigurationSettings.AppSettings["IMPRESORA_TICKETS"]);
            }
            catch (Exception Exc)
            {
                MessageBox.Show(Exc.Message, "FLUCOL");
            }
        }