Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all articles
Browse latest Browse all 519

An expression in a page header or footer can refer to only one report item.

$
0
0

Hello,

I want to give an expression to my textbox in the header of my report page.

But when I do an if statement like:

=IIf(ReportItems!PageNumberTotalTextBox.Value = "", "1", ReportItems!PageNumberTotalTextBox.Value)

it gives me the following error:

the Value expression for the textbox ‘textbox1’ refers to more than one report item. An expression in a page header or footer can refer to only one report item.

Also, when I try to merge/combine different fields on my header (like the code below) it gives me the same error, that I can't use more then 1 reportitem.

=ReportItems!PageTextBox.Value & " of " & ReportItems!PageNumberTotalTextBox.Value

How can I bypass this? I find it rather strange that I can only use a reportitems once in the header, and multiple times in the body.

Thanks in advance for your help,

Gert


Viewing all articles
Browse latest Browse all 519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>