将值分配给标题中的文本框 [英] Assigning value to text box in the header

查看:87
本文介绍了将值分配给标题中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的.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.


这篇关于将值分配给标题中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆