• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1260
  • Last Modified:

Can we format report-specific information in subject line in SSRS 2005

I want to run the subscription with following information:

1. Month and Year of Date Parameter
2. Text Value from Combo Box in Parameter.

Month and year of Date Parameter should be display in Subject line of Email. Also is there any way to format the comment or message body.

I will appreciate your help.

Thanks
0
punjwani
Asked:
punjwani
  • 3
  • 2
1 Solution
 
Megan BrooksSQL Server ConsultantCommented:
In Enterprise Edition, you can set email header information (to, subject, comment, etc.) and parameter values from a database query. If you supply a query to the subscription that returns the same values as those in your report parameters, presumably by performing the same queries that the parameter datasets do, then you can get the same effect as what you are asking for.
0
 
punjwaniAuthor Commented:
Thanks, so you mean I have to use data driven subscription, I was looking for code like we use @executionTime in subject line or @ReportName, is there any way I can get list of these codes.

But your solution will definately work for me as a work around.

Thanks
Noor
0
 
Megan BrooksSQL Server ConsultantCommented:
I don't remember for sure but it seems like those two items were pretty special. There might be some other macro-like report properties you can pull that way (I will check), but I thought you were asking how to access report parameter values.
0
 
Megan BrooksSQL Server ConsultantCommented:
Execution time and report name are the only properties that you can insert that way, and only into the subject line. Data-driven subscriptions can insert other things into any of the email header fields as long as the query has access to the information.
0
 
punjwaniAuthor Commented:
Thanks for your help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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