Ejemplo n.º 1
0
        /// <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;
                    }
                }
            }
        }