Exemplo n.º 1
0
        private void lblStudentProgressPageByBatch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportExamResultPersonalSummary studentReport = new ReportExamResultPersonalSummary();
            ReportPrintTool printtool = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 2
0
        private void lblattandance_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportAttdanceSummary studentReport = new ReportAttdanceSummary();
            ReportPrintTool       printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 3
0
        private void lblFileFronpage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportExamMeetingFileCover studentReport = new ReportExamMeetingFileCover();
            ReportPrintTool            printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 4
0
        private void lblreportbatch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportExamResultSummary studentReport = new ReportExamResultSummary();
            ReportPrintTool         printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 5
0
        private void lblemptystudentlist_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportStudentEmpyReport studentReport = new ReportStudentEmpyReport();
            ReportPrintTool         printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            RptTotalIngresos reporte = new RptTotalIngresos(cboMes.SelectedIndex);
            ReportPrintTool  viewer  = new ReportPrintTool(reporte);

            viewer.ShowRibbonPreview();
        }
Exemplo n.º 7
0
        public FormStampa(nalaz nalaz, string hospital, string modalitet, string operater, string doktor)
        {
            InitializeComponent();
            report = new XtraReport1();

            report.Parameters["nalaz"].Value         = nalaz.nalaz_tekst;
            report.Parameters["datum_pregled"].Value = nalaz.datum_pregleda.ToString("dd.MM.yyyy., HH:mm");
            report.Parameters["Datum_rodj"].Value    = (nalaz.datum_rodj != null) ? nalaz.datum_rodj.Value.ToString("dd.MM.yyyy.") : "";
            report.Parameters["hospital"].Value      = hospital;
            report.Parameters["Ime"].Value           = nalaz.ime;
            report.Parameters["Prezime"].Value       = nalaz.prezime;
            report.Parameters["Modalitet"].Value     = modalitet;
            report.Parameters["operater"].Value      = operater;
            report.Parameters["doktor"].Value        = doktor;
            report.Parameters["napomena"].Value      = nalaz.napomena;
            if (String.IsNullOrWhiteSpace(nalaz.napomena))
            {
                report.Napomena_label.Visible  = false;
                report.Napomena_label2.Visible = false;
            }

            report.CreateDocument();

            ReportPrintTool printtool = new ReportPrintTool(report);

            printtool.ShowRibbonPreview();


            //documentViewer1.DocumentSource = report;

            //documentViewer1.Refresh();
        }
Exemplo n.º 8
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportStudentInfoByBatch studentReport = new ReportStudentInfoByBatch();
            ReportPrintTool          printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 9
0
        private void lblstudentadminon_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportStudentAdmissionForm studentReport = new ReportStudentAdmissionForm();
            ReportPrintTool            printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 10
0
        private void PrintStudentInfrobybatchandschool_Click(object sender, EventArgs e)
        {
            ReportStudentInfoCondition studentReport = new ReportStudentInfoCondition();
            ReportPrintTool            printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 11
0
        private void lblpyamentsummary_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportFeePayment studentReport = new ReportFeePayment();
            ReportPrintTool  printtool     = new ReportPrintTool(studentReport);

            printtool.ShowRibbonPreview();
        }
Exemplo n.º 12
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            ReportPrintTool printtool = new ReportPrintTool(report);

            printtool.ShowRibbonPreview();
            //printtool.PrintDialog();
        }
Exemplo n.º 13
0
        public FormStampa(nalaz nalaz)
        {
            InitializeComponent();
            report = new XtraReport1();

            report.Parameters["nalaz"].Value = nalaz.nalaz_tekst;
            //report.Parameters["datum_pregled"].Value = nalaz.datum_pregleda.ToString("dd.MM.yyyy.  HH:mm");
            report.Parameters["datum_pregled"].Value = nalaz.info_datum;
            report.Parameters["Datum_rodj"].Value    = (nalaz.datum_rodj != null) ? nalaz.datum_rodj.Value.ToString("dd.MM.yyyy.") : "";
            report.Parameters["hospital"].Value      = nalaz.hospital.naziv;
            report.Parameters["Ime"].Value           = nalaz.ime;
            report.Parameters["Prezime"].Value       = nalaz.prezime;
            report.Parameters["Modalitet"].Value     = nalaz.modalitet.naziv;
            report.Parameters["operater"].Value      = (nalaz.operater != null) ? nalaz.operater.info_naziv : "";
            report.Parameters["doktor"].Value        = (nalaz.doktor != null) ? nalaz.doktor.info_naziv : "";
            report.Parameters["napomena"].Value      = nalaz.napomena;
            if (String.IsNullOrWhiteSpace(nalaz.napomena))
            {
                report.Napomena_label.Visible  = false;
                report.Napomena_label2.Visible = false;
            }
            //report.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
            report.CreateDocument();

            ReportPrintTool printtool = new ReportPrintTool(report);

            printtool.ShowRibbonPreview();
            this.Close();


            //documentViewer1.DocumentSource = report;

            //documentViewer1.Refresh();
        }
Exemplo n.º 14
0
        private void btnReporteComple_Click(object sender, EventArgs e)
        {
            ReportPrintTool printTool = new ReportPrintTool(new ProductosReport());

            // Invocar el formulario Vista preliminar de la cinta de opciones
            // y cargar el documento de informe en él.
            printTool.ShowRibbonPreview();
        }
Exemplo n.º 15
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            XtraReport1     report = new XtraReport1();
            ReportPrintTool tool   = new ReportPrintTool(report);

            tool.PreviewRibbonForm.Shown += PreviewForm_Shown;
            tool.ShowRibbonPreview();
        }
Exemplo n.º 16
0
        private void label15_Click(object sender, EventArgs e)
        {
            RpAppro xtp = new RpAppro();

            xtp.DataSource = clr.GetInstance().SelectAll("Appro_Medicament");
            ReportPrintTool printTool = new ReportPrintTool(xtp);

            printTool.ShowRibbonPreview();
        }
Exemplo n.º 17
0
        private void label15_Click(object sender, EventArgs e)
        {
            RpConsultation xtp = new RpConsultation();

            xtp.DataSource = clr.GetInstance().SelectAll("liste_consultation where id is not null");
            ReportPrintTool printTool = new ReportPrintTool(xtp);

            printTool.ShowRibbonPreview();
        }
        public static void ShowReport(Form mdiContainer)
        {
            XtraReport1     report    = new XtraReport1();
            ReportPrintTool printTool = new ReportPrintTool(report);

            printTool.PreviewRibbonForm.MdiParent   = mdiContainer;
            printTool.PreviewRibbonForm.WindowState = FormWindowState.Maximized;
            printTool.ShowRibbonPreview();
        }
Exemplo n.º 19
0
        private void label15_Click(object sender, EventArgs e)
        {
            Fiche_Patient xtp = new Fiche_Patient();

            xtp.DataSource = clr.GetInstance().listes("Fiche_Patient", p.Id);
            ReportPrintTool printTool = new ReportPrintTool(xtp);

            printTool.ShowRibbonPreview();
        }
Exemplo n.º 20
0
        private void label15_Click(object sender, EventArgs e)
        {
            RpDepense xtp = new RpDepense();

            xtp.DataSource = clr.GetInstance().SelectAll("V_Depense");
            ReportPrintTool printTool = new ReportPrintTool(xtp);

            printTool.ShowRibbonPreview();
        }
Exemplo n.º 21
0
        public void OnIzle(int ReportID, object data)
        {
            var rapor = RaporTasarimGetir(DesignID: ReportID);

            rapor.DataSource = data;
            var rpt = new ReportPrintTool(rapor);

            rpt.ShowRibbonPreview();
        }
Exemplo n.º 22
0
        void PrintResult()
        {
            resultReport report = new resultReport();

            report.gridContainer.PrintableComponent = gvResult;

            ReportPrintTool preview = new ReportPrintTool(report);

            preview.ShowRibbonPreview();
        }
Exemplo n.º 23
0
        private void button1_Click(object sender, EventArgs e)
        {
            string fecha    = dtpFecha.Text;
            string servicio = cboServicio.Text;

            RptIngresos     reporte = new RptIngresos(fecha, servicio);
            ReportPrintTool viewer  = new ReportPrintTool(reporte);

            viewer.ShowRibbonPreview();
        }
Exemplo n.º 24
0
        private void button1_Click(object sender, EventArgs e)
        {
            XtraReport1 report = new XtraReport1();
            //// Add bounded labels to the Detail band of the report.
            report._bindData();
            report._group();
            report.DataSource = NhanVienPT.getAll();

            ReportPrintTool printTool = new ReportPrintTool(report);

            printTool.ShowRibbonPreview();
        }
Exemplo n.º 25
0
        private void button1_Click(object sender, EventArgs e)
        {
            XtraReport1 report = new XtraReport1();

            //// Add bounded labels to the Detail band of the report.
            report._bindData();
            report._group();
            report.DataSource = NhanVienPT.getAll();

            ReportPrintTool printTool = new ReportPrintTool(report);

            printTool.ShowRibbonPreview();
        }
Exemplo n.º 26
0
 public void ShowReport(bool canWrite, bool canEdit)
 {
     if (!canWrite && !canEdit)
     {
         XtraMessageBox.Show("You dont Have access to view Reports, Contact Admin", "You cant View Reports", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     Cursor.Current = Cursors.AppStarting;
     report         = new UmitechXtraReport();
     printTool      = new ReportPrintTool(report);
     printTool.ShowRibbonPreview();
     Cursor.Current = Cursors.Default;
 }
Exemplo n.º 27
0
 private void fRpt_Load(object sender, EventArgs e)
 {
     rptDonDatHang _rptDonDatHang = new rptDonDatHang();
     _rptDonDatHang.obj = objDonDatHang;
     _rptDonDatHang.DataSource = dtDonDatHangCT;
     _rptDonDatHang.DataMember = "ChiTietDonHang";
     using (ReportPrintTool printTool = new ReportPrintTool(_rptDonDatHang))
     {
         printTool.ShowRibbonPreviewDialog();
         printTool.ShowRibbonPreview(UserLookAndFeel.Default);
     }
     this.Close();
 }
Exemplo n.º 28
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            CDFactura dato = new CDFactura();

            #region validaciones

            if (txtIdAutomovil.Text == "")
            {
                epFactu.SetError(txtIdAutomovil, "Debe ingresar un Automovil");
                btnAuto.Focus();
                return;
            }
            else
            {
                epFactu.SetError(txtIdAutomovil, "");
            }

            if (dgvFactu.Rows.Count == 0)
            {
                epFactu.SetError(dgvFactu, "No ha ingresado ningun Automovil a lavar");
                btnAgregar.Focus();
                return;
            }
            else
            {
                epFactu.SetError(dgvFactu, "");
            }


            #endregion

            InsertarFactura();
            AgregarDetalle();
            if (MessageBox.Show("¿Desea imprimir la factura?", "CarWash", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            {
                int    id    = int.Parse(txtIdFactura.Text);
                string isv   = txtISV.Text;
                string total = txtTotal.Text;


                RptFactura      reporte = new RptFactura(id, isv, total);
                ReportPrintTool viewer  = new ReportPrintTool(reporte);

                viewer.ShowRibbonPreview();
            }

            Limpiar();
            LimpiarArticulos();
            HabilitarBotones(true, false, false, false, false);
            dgvFactu.Rows.Clear();
        }
Exemplo n.º 29
0
 private void bunifuFlatButton2_Click(object sender, EventArgs e)
 {
     if (cellule_select.Text == "")
     {
         MessageBox.Show("sélectionner d'abord avant d'emprimer", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         XtraReport1 xtp = new XtraReport1();
         xtp.DataSource = clr.GetInstance().listeup("v_membre", "NOM_CELLULE", cellule_select.Text);
         ReportPrintTool printTool = new ReportPrintTool(xtp);
         printTool.ShowRibbonPreview();
     }
 }
Exemplo n.º 30
0
 private void label15_Click(object sender, EventArgs e)
 {
     if (!p.Id.Equals(""))
     {
         RpFact xtp = new RpFact();
         xtp.DataSource = clr.GetInstance().listes("Liste_Paiement", p.Id);
         ReportPrintTool printTool = new ReportPrintTool(xtp);
         printTool.ShowRibbonPreview();
     }
     else
     {
         MessageBox.Show("Désolé veuillez selectionner un nom de la table!, ", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 31
0
        private void PrintLabel()
        {
            DataTable dt = dataForPrintLabel.GetDataTableForReport(_batchOrPallet.ToString());

            if (dt.Rows.Count > 0)
            {
                object reportInstance = Activator.CreateInstance(Type.GetType("ButcherLabels.Reports.ButcherLabel"));

                var report = (XtraReport)(reportInstance);
                report.DataSource = dt;
                report.DataMember = "tblPalletBatch";
                report.CreateDocument();

                var pt = new ReportPrintTool(report);
                pt.ShowRibbonPreview();
            }
        }
Exemplo n.º 32
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            string da1 = dates1.Value.ToString("yyyy/MM/dd");
            string da2 = dates2.Value.ToString("yyyy/MM/dd");

            if (dd.Text == "" || ddd.Text == "")
            {
                MessageBox.Show("sélectionner d'abord date", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                RapportJournal xtp = new RapportJournal();
                xtp.DataSource = clr.GetInstance().journal(da1, da2);
                ReportPrintTool printTool = new ReportPrintTool(xtp);
                printTool.ShowRibbonPreview();
            }
        }
Exemplo n.º 33
0
        private void GenerarFicheroFacturaPdfToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (!DatosLineaValido()) return;
            bsFactura.EndEdit();
            Factura factura = bsFactura.Current as Factura;

            ActualizarContadoresLineas();

            try
            {
                XtraReportFactura xtraReport=new XtraReportFactura
                {
                    Factura=factura
                };

                xtraReport.Parameters["licenciaMunicipal"].Value = Settings.Default.licencia;
                xtraReport.Parameters["email"].Value = Settings.Default.email;
                xtraReport.Parameters["Movil"].Value = Settings.Default.movil;
                xtraReport.Parameters["Nif"].Value = Settings.Default.nif;
                xtraReport.Parameters["Telefono"].Value = Settings.Default.telefono;
                xtraReport.Parameters["nombre"].Value = Settings.Default.nombre;
                xtraReport.Parameters["direccion"].Value = Settings.Default.direccion;
                xtraReport.Parameters["poblacion"].Value = Settings.Default.poblacionCP;

                if (!string.IsNullOrEmpty(Settings.Default.Iban))
                {
                    xtraReport.Parameters["poblacion"].Value = string.Format("IBAN: {0}", Settings.Default.Iban);
                }
                else
                {
                    xtraReport.Parameters["poblacion"].Value = string.Format("IBAN: {0}", Settings.Default.ccc);
                }

                SetTextWatermark(xtraReport);

                using (ReportPrintTool printTool = new ReportPrintTool(xtraReport))
                {
                    // Invoke the Ribbon Print Preview form modally,
                    // and load the report document into it.
                    printTool.ShowRibbonPreviewDialog();

                    // Invoke the Ribbon Print Preview form
                    // with the specified look and feel setting.
                    printTool.ShowRibbonPreview(UserLookAndFeel.Default);
                }
                //(new PdfGenerador(factura)).Run();
            }
            catch (Exception exception)
            {
                XtraMessageBox.Show(exception.Message, "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
            }

            if (factura != null) Settings.Default.ultimaFactura = factura.Numero;
            Settings.Default.Save();
        }