Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:00:50+00:00 2026-05-13T13:00:50+00:00

I’m finishing up my reports in my SQL Server 2008 Reporting Services project, and

  • 0

I’m finishing up my reports in my SQL Server 2008 Reporting Services project, and as one of the last steps, I need to make things translateable.

Since I have a bunch of reports, and they all share some identical labels, I decided to put all those labels I need to show into a SQL Server table, and I am surfacing that contents as a DataSet dsReportLabels in my reports.

This DataSet basically contains two fields: LabelName is the name of the label (e.g. “Count of items”), and Caption contains the text in the chosen language to be shown on the report.

But now here comes my mental block: how do I assign the dsReportLabels.Caption value to a e.g. textbox, based on the dsReportLabels.LabelName ?

So I need something like (pseudo-LINQ statement):

Textbox1.Value = from dsReportLabels 
                 where LabelName = "some value" 
                 select Caption;

but how do I express that in a Reporting Services code snippet?

I know how to reference things like Parameters!MyParameterName.Value and so on – but that doesn’t really work here when I’m trying to extract a value from one column of the DataSet, given the value of the other column in that DataSet.

I bet this is totally easy to do in the end…. just can’t seem to wrap my head around this right now…. anyone out there know how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:00:50+00:00Added an answer on May 13, 2026 at 1:00 pm

    This MSDN blog post describes one way of doing it. Essentially:

    1. Create a lookup table with the LabelID, Language, and Caption.
    2. Create a Stored Proc that gets all of the labelIDs and captions for a specified language.
    3. Store the results of the SP in a dataset.
    4. Store the dataset in a multi-value parameter.
    5. Use the multi-value parameter in a custom lookup function.

    So, the expression in your label textbox would call the custom function with the labelID, which would get the appropriate caption for the appropriate language.

    Report Server 2008 also has a built-in Lookup function that may allow you to skip steps 4 and 5. If this is the case, your expression would call the built-in lookup function, which would go directly to the dataset. I don’t have RS 2008, so I can’t test this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.