当前位置: 首页>>代码示例>>C#>>正文


C# ReportPrintTool.ShowRibbonPreview方法代码示例

本文整理汇总了C#中ReportPrintTool.ShowRibbonPreview方法的典型用法代码示例。如果您正苦于以下问题:C# ReportPrintTool.ShowRibbonPreview方法的具体用法?C# ReportPrintTool.ShowRibbonPreview怎么用?C# ReportPrintTool.ShowRibbonPreview使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ReportPrintTool的用法示例。


在下文中一共展示了ReportPrintTool.ShowRibbonPreview方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: button1_Click

        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();
        }
开发者ID:quocdunginfo,项目名称:QuanLyTaiSan,代码行数:12,代码来源:Test.cs

示例2: fRpt_Load

 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();
 }
开发者ID:TanNguyenNet,项目名称:invoice_service,代码行数:13,代码来源:fRpt.cs

示例3: GenerarFicheroFacturaPdfToolStripMenuItemClick

        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();
        }
开发者ID:mondedos,项目名称:facturasmarianoconchi,代码行数:55,代码来源:Form1.cs


注:本文中的ReportPrintTool.ShowRibbonPreview方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。