sorry, typo!
Main Topics
Browse All TopicsYesterday I found an answer to Billy21 by Simon( 08/31/2005 02:13AM PDT) pointing out a solution on my problem: Trying to put datafields from a table into the footer of a MS Reporting Services report.
The answer was:
1) Are you referring to a table? If so then it's fairly simple to add fields to its detail/group headers and footers.
If it's a report header and footer, and you want to use a field from a dataset, then you need to use 2 text boxes. Put one in the report footer, and reference it to one within the detail section. E.g.
Footer - txtBox1.Value = "=ReportItems.txtBox2.Valu
Detail - txtBox2.Value = "CStr("Version 1.0 (Created: " & CStr(First(Fields!Creation
There's a slight issue with dataset referencing in the footer or header in that if you want the textbox to repeat on each page then you will need to ensure that the textbox in the detail section is on every page. Best way to do this is to add an empty column on the end of your table, drag the textbox into the detail row field, and then make the text white. This way the header or footer can reference the textbox across all pages.
I tried with no success. Here are the boxes as generated in the XML file:
Textbox in the footer:
<Textbox Name="textbox59">
<Style>
<PaddingLeft>2pt</PaddingL
<PaddingBottom>2pt</Paddin
<PaddingTop>2pt</PaddingTo
<PaddingRight>2pt</Padding
</Style>
<rd:DefaultName>textbox59<
<Height>0.9cm</Height>
<Width>8.6cm</Width>
<Top>2.2cm</Top>
<CanGrow>true</CanGrow>
<Value>=ReportItems.shlste
<Left>4.6cm</Left>
</Textbox>
Reference to:
<Textbox Name="shlstedkomnr">
<Style>
<PaddingLeft>2pt</PaddingL
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<FontSize>8pt</FontSize>
<PaddingBottom>2pt</Paddin
<PaddingTop>2pt</PaddingTo
<PaddingRight>2pt</Padding
</Style>
<ZIndex>32</ZIndex>
<rd:DefaultName>shlstedkom
<Height>0.5cm</Height>
<Width>2.75cm</Width>
<Top>3.75cm</Top>
<CanGrow>true</CanGrow>
<Value>=First(Fields!shlst
<Left>12.25cm</Left>
</Textbox>
Both are ReportItems!
When building, this error message comes up:
The value expression for the textbox ‘textbox59’ contains an error: [BC30456] 'shlstedkomnr' is not a member of 'Microsoft.ReportingServic
What is wrong here?
Hopefully
Knut Urke
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: KnutUrkePosted on 2005-10-06 at 04:13:58ID: 15029395
Found the error myself.
e"
e"
The answer from Simon has this line:
Footer - txtBox1.Value = "=ReportItems.txtBox2.Valu
I changed it to:
Footer - txtBox1.Value = "=ReportItems!txtBox2.Valu
Changed . to ! and everything worke fine!