Solved

Reporting Services - Use Parameter to Change/Update Report Title

Posted on 2004-09-27
7
295 Views
Last Modified: 2008-02-01
Does anyone know of a way to use the parameter chosen in a parameterized Report and update the report title?  There has to be a trick to do this.

Also, on the horizontal bar charts, no matter what I do - the bar on the bottom never shows the label on the report server, but always does on the report viewer through Visual Studio.  It is only the bottom bar.  How do I get around this?  Why is it happening?
0
Comment
Question by:hismightiness
  • 4
  • 3
7 Comments
 
LVL 14

Accepted Solution

by:
simon_kirk earned 250 total points
Comment Utility
Hi,

I can answer the first part of your question concerning the report parameter.

1. Create a textbox on your report
2. Right click and select expression
3. In the fields box on the the left of the dialog that opens, you can select the parameter that you need

Simon
0
 
LVL 9

Author Comment

by:hismightiness
Comment Utility
Your example of using a TextBox is a life saver.  However, no matter what I have done so far it keeps showing up at the bottom of the report.  I cannot get it to the top (above the header).  I have set the location to 0, 0 - and I have incremented it slowly to see if there was a difference.  Once again, it looks fine in Visual Studio's report viewer, but once I upload it to the report server, it drops the textbox to the bottom of the report.  Any suggestions???
0
 
LVL 14

Expert Comment

by:simon_kirk
Comment Utility
Is the textbox that you've created within the Header or Body section of the report?

I've found that Reporting Services can be a bit stubborn if you put textboxes that are referring to data within the Header section.  As long as your textbox is at the top of the body section, there is no obvious reason why it should not appear there when you deploy the report.  If you do not need to use the header within the report, then its best to remove it or resize it to zero so that you don't get blank space.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 9

Author Comment

by:hismightiness
Comment Utility
The textbox is located within the Body section.  I am not using the Header or Footer for this report.  It is just a standard horizontal bar graph, now with the textbox you suggested.  The only true modifications I have made are the Height/Width properties, and the Point Label text at the end of each bar.
0
 
LVL 9

Author Comment

by:hismightiness
Comment Utility
Well, I fixed the problem with the bottom number not showing up right.  I wasn't deploying the reports correctly.  Duh!

Do you have any more ideas on the textbox still showing up on the bottom of the report?
0
 
LVL 9

Author Comment

by:hismightiness
Comment Utility
Argh!  The most simple thing was being overlooked.  I simply double-clicked the textbox control and it was placed (0,0) on the report.  I didn't even think to resize the chart to start just below the textbox.  

Well, it looks like you answered one of my questions though.  Don't be offended by the grade though.  You only had one of the answers.  Have a good one...  THANKS AGAIN!
0
 
LVL 14

Expert Comment

by:simon_kirk
Comment Utility
glad you managed to sort it!  New software always involves a learning curve :o)
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now