Advertisement

10.06.2005 at 12:44AM PDT, ID: 21585598
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Use of fields from a table in the footer of a MS Reporting Services Report

Asked by KnutUrke in SQL Reporting

Tags: ,

Yesterday 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.Value"
Detail - txtBox2.Value = "CStr("Version 1.0 (Created: " & CStr(First(Fields!CreationDate.Value, "ReportInfo")) & "  Modified: " & CStr(First(Fields!ModifiedDate.Value, "ReportInfo")) & ")")"

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</PaddingLeft>
          <PaddingBottom>2pt</PaddingBottom>
          <PaddingTop>2pt</PaddingTop>
          <PaddingRight>2pt</PaddingRight>
        </Style>
        <rd:DefaultName>textbox59</rd:DefaultName>
        <Height>0.9cm</Height>
        <Width>8.6cm</Width>
        <Top>2.2cm</Top>
        <CanGrow>true</CanGrow>
        <Value>=ReportItems.shlstedkomnr.Value</Value>
        <Left>4.6cm</Left>
      </Textbox>
                                   
                                Reference to:


      <Textbox Name="shlstedkomnr">
        <Style>
          <PaddingLeft>2pt</PaddingLeft>
          <BorderStyle>
            <Default>Solid</Default>
          </BorderStyle>
          <FontSize>8pt</FontSize>
          <PaddingBottom>2pt</PaddingBottom>
          <PaddingTop>2pt</PaddingTop>
          <PaddingRight>2pt</PaddingRight>
        </Style>
        <ZIndex>32</ZIndex>
        <rd:DefaultName>shlstedkomnr</rd:DefaultName>
        <Height>0.5cm</Height>
        <Width>2.75cm</Width>
        <Top>3.75cm</Top>
        <CanGrow>true</CanGrow>
        <Value>=First(Fields!shlstedkomnr.Value)</Value>
        <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.ReportingServices.ReportProcessing.ReportObjectModel.ReportItems'.


What is wrong here?


Hopefully
Knut Urke
Start Free Trial
[+][-]10.06.2005 at 04:13AM PDT, ID: 15029395

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2005 at 06:42PM PDT, ID: 15049609

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Reporting
Tags: reportitems, footer
Sign Up Now!
Solution Provided By: simon_kirk
Participating Experts: 1
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32