コード例 #1
0
        private void ReporteImagen_Load(object sender, EventArgs e)
        {
            try
            {
                this.sp_ReporteFActuradosTableAdapter.Fill(this.dataSet1.sp_ReporteFActurados, DetalleId);
                ReportParameter report = new ReportParameter("Path", @"file://" + Path.GetDirectoryName(Application.ExecutablePath) + @"\CodigosBarras\" + OrdenId.ToString() +
                                                             ".png", true);
                this.reportViewer1.LocalReport.SetParameters(report);

                //AutoPrintCls autoprintme = new AutoPrintCls(reportViewer1.LocalReport);
                //autoprintme.Print();
                this.reportViewer1.RefreshReport();
            }
            catch (Exception ex)
            {
                ReportParameter report = new ReportParameter("Path", @"file://C:\Users\Erickxon\Desktop\Kosturas\Kosturas\bin\Debug\CodigosBarras\" + OrdenId.ToString() +
                                                             ".png", true);
                this.reportViewer1.LocalReport.SetParameters(report);


                //AutoPrintCls autoprintme = new AutoPrintCls(reportViewer1.LocalReport);
                //autoprintme.Print();
                this.reportViewer1.RefreshReport();
            }
        }
コード例 #2
0
ファイル: otro.cs プロジェクト: Brainer2511/Kosturas
        private void otro_Load(object sender, EventArgs e)
        {
            try
            {
                this.sp_ReporteFActuraTableAdapter.Fill(this.dSServicios.sp_ReporteFActura, DetalleId);
                ReportParameter report = new ReportParameter("Path", @"file://*****:*****@"file://C:\Users\Erickxon\Desktop\Kosturas\Kosturas\bin\Debug\CodigosBarras\" + OrdenId.ToString() +
                                                             ".png", true);
                this.reportViewer1.LocalReport.SetParameters(report);
                this.reportViewer1.RefreshReport();
            }

            this.reportViewer1.RefreshReport();
        }