将值分配给标题中的文本框

编程入门 行业动态 更新时间:2024-10-25 06:20:29
本文介绍了将值分配给标题中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我的.rdlc报告中,我使用以下语句分配变量的值. (右键单击TextBox1,然后将语句放入值表达式中) = ReportItems!TextBox1.Value = MyVriable 但是在TextBox1中,它显示为错误#" 请告知如何分配MyVariable的值 谢谢 Furqan

Hi, In my .rdlc report, I used following statement to assign value of variable. (right clicked TextBox1, and put the statement in value expression) =ReportItems!TextBox1.Value=MyVriable But in TextBox1, it shows ''Error#'' Please advise how to assign the value of MyVariable Thanks Furqan

推荐答案

尝试以下操作: 1.在正文中放置一个文本框(确保它在报表正文中) 2.将可见性设置为false 3.在其中设置所需的值,例如=field!neededValue.Value 4.在报表标题中放置另一个文本框 5.在其中设置所需的值,例如= ReportItems!bodyTextbox.Value 应该没有错误,您应该能够在标题中设置数据集字段值. Try this: 1. Put a textbox in the body(make sure it is in report body) 2. Set the visibility to false 3. Set the needed value in it, like =field!neededValue.Value 4. Put another textbox in report header 5. Set the needed value in it, like = ReportItems!bodyTextbox.Value There should be no error and you should be able to set a dataset field value in header.

更多推荐

将值分配给标题中的文本框

本文发布于:2023-11-10 00:40:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573889.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   标题   将值分

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!