在报表的其他部分显示文本框的值 [英] Displaying the value of a textbox in other parts of a report
问题描述
在报告表中有这个公式来计算发票的小计.这是公式:
In a report table there is this formula to calculate a subtotal for an invoice. This is the formula:
=Sum(Fields!LineTotal.Value)
该文本框称为 TextBoxSubTotal.我想在报告的另一部分显示这一点,例如在我显示小计、税费、运费和应付总额的标题区域中.
The textbox is called TextBoxSubTotal. I would like to display this in another part of the report such as in the header area where I display that subtotal, tax, shipping charge and also a total due.
你能告诉我如何在报表的其他部分的 TextBoxSubTotal 中显示这个值吗?
Can you tell me how to display this value in TextBoxSubTotal in other parts of the report?
推荐答案
您是否尝试过创建报表变量?创建一个新变量并将发票计算放入新变量的表达式中.然后从两个文本框中引用报告变量.
Have you tried creating a report variable? Create a new variable and put the invoice calculation into the expression for the new variable. Then reference the report variable from the two textboxes.
两个文本框的源代码如下所示:
The source for the two textboxes would look something like this:
=Variables!TestVariable.Value
http://msdn.microsoft.com/en-us/library/dd255208(SQL.105).aspx
这篇关于在报表的其他部分显示文本框的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!