/// <summary> /// 打印按钮事件 /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void btnPrint_Click(object sender, EventArgs e) { try { GridViewResult.PostColumnLayout(); GridViewResult.Report.PrintPreview(true); } catch (Exception error) { } }
/// <summary> /// 打印 /// </summary> /// <param name="sender">控件对象</param> /// <param name="e">事件参数</param> private void BtnPrint_Click(object sender, EventArgs e) { try { GridViewResult.PostColumnLayout(); GridViewResult.Report.PrintPreview(true); } catch (Exception error) { MessageBoxEx.Show(error.Message); } }
/// <summary> /// 打印 /// </summary> /// <param name="sender">控件对象</param> /// <param name="e">事件参数</param> private void BtnPrint_Click(object sender, EventArgs e) { try { GridViewResult.PostColumnLayout(); GridViewResult.Report.PrintPreview(true); } catch (Exception error) { InvokeController("MessageBoxErr", error.Message); } }