Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 665
  • Last Modified:

Adding a legend to a Reporting Services report

Hi,

I have a Microsoft SQL Server 2000 Reporting Services report using a matrix and using a dataset that gets its contents from a stored procedure. All is working fine, but I have some color-coding used in the report itself and I would like to add a legend at the top.

In Visual Studio .NET 2003, I switched to the toolbox tab on the left hand sidebar and dragged a table to my report. I removed the header and footer, removed a column and added rows and basically made the table the way I want. The problem I have is that the legend is not appearing once, and all the time (as I would want it). Instead it shows up as many times as there are rows in the dataset used by the matrix. How do I make it to work independently from the dataset, the same way as a textbox works for example?
0
MUTU
Asked:
MUTU
  • 2
  • 2
1 Solution
 
simon_kirkCommented:
Remove the dataset from the table, as I'm guessing its the same one as your Matrix.  Create another datset with just SELECT GETDATE() and then use this in your table.  This dataset will return one row of data, so your table will only have one detail row.
0
 
MUTUAuthor Commented:
But that creates another hit to the database. Isn't there a neat way to do this?
0
 
simon_kirkCommented:
A table requires a dataset. Using SELECT GETDATE() is a simple way to create a dataset.  Other option would be to use textboxes.
0
 
MUTUAuthor Commented:
Thanks. For the record, I did SELECT 1;
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now