本文整理汇总了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();
}
示例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();
}
示例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();
}