i really need to solve this error,
The Value expression for the text box ‘txtReportDate’ refers to the report item ‘ReportDate’. Report item expressions in a Page Header or Footer can only refer to report items within the same ReportSection. Letters in the names of report items must use the correct case.
not able to solve,
What is the expression for text box ‘txtReportDate’ Is it in the Header or Footer? It looks like there is a ReportItem in the expression in question, what part of the report is that ReportItem in: Header, body, footer?
its in the header,what i need to do
I asked 3 questions and you gave me one answer. One answer does not help me help you.
the expression is
i have 1 textbox in header.
i dont know ho wto find that report item,the textbox is in the header
This is a little odd because in your original post you say the error is related to a Report Item of ReportDate. But in the code sample you provided here it refers to ReportHeading1.
In any case, let's start with the basics. The ReportItem is a way to reference a text box somewhere on the report. Typically you will see something like ReportItem!TextBoxNameHere.Value. So since you state you do not know how to find the report item you should start looking for a textbox named either ReportHeading1 or ReportDate. If there is only one text box in the header and it is not named ReportHeading1 or ReportDate, you need to find the the textbox that is named appropriately. One additional thing you need to know is that "ReportItems" do not cross always report boundaries well and will frequently fail in this case. Things such as groups and header, body, footer boundaries may give you some problems.