/// <summary> /// 设置报表Label的文本 /// </summary> /// <param name="report"></param> /// <param name="key"></param> /// <param name="vlaue"></param> public static void SetMemoText(TfrxReportClass report, string key, object vlaue) { IfrxComponent memo = report.FindObject(key); if (memo != null) { string text = ""; if (vlaue != null) { text = vlaue.ToString(); } IfrxCustomMemoView control = memo as IfrxCustomMemoView; if (control != null) { control.Text = text; } else { IfrxBarCodeView controlbar = memo as IfrxBarCodeView; if (controlbar != null) { controlbar.Text = text; } } } }
private void Report_OnBeforePrint(IfrxComponent Sender) { if (Sender is FastReport.IfrxView) { if (Sender.Name == "Memo10") { Object data; dtSummary.OnGetValueHandler("EMail", out data); (Sender as IfrxMemoView).Memo = data.ToString(); } } }
private void Report_OnBeforePrint(IfrxComponent Sender) { if (Sender is FastReport.IfrxView) { if (Sender.Name == "Memo1") { (Sender as FastReport.IfrxMemoView).Memo = CommonData.CompanyInfo.NativeName; } if (Sender.Name == "MemoContractTerms") //打印合同条款 { (Sender as FastReport.IfrxMemoView).Memo = ConvertEx.ToString(_CurrentContracTerms); } if (Sender.Name == "Picture1") { IfrxPictureView pic = Sender as IfrxPictureView; // Object pictureData; // dtSummary.OnGetValueHandler("IMG", out pictureData); // LoadPicture((IfrxPictureView)Sender, pictureData); } } }
/// <summary> /// 打印完成事件 /// </summary> private void tfrx_OnAfterPrintReport(IfrxComponent Sender) { // }
private void Report_OnAfterPrint(IfrxComponent Sender) { // }