• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

change label caption from a stored procedure result

Engaged ,
May 17, 2013 May 17, 2013

Copy link to clipboard

Copied

I need change label caption on the report using Report Builder and data source from a stored procedure.

Your information and help is great appreciated,

regards,

Iccsi

TOPICS
Reporting

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Sep 17, 2013 Sep 17, 2013

There are at least two ways to handle this.

The first way is to pass the column headings to the report as parameters.

The second is to use a sub-report that uses a one record result-set which contains the column headings. You will need to set the sub-report's margins to zero to get things to line up properly.

Votes

Translate

Translate
Advocate ,
Sep 17, 2013 Sep 17, 2013

Copy link to clipboard

Copied

Where the data comes from is irrelevant to the report. The report will use whatever result-set you give it.

If you elaborate on what you're having difficulty with then perhaps we can get to the bottom of it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 17, 2013 Sep 17, 2013

Copy link to clipboard

Copied

Thanks for the information and help,

I use stored procedure to return a dataset the column is like following:

Date1, Date2, Date3, Date4, Date5.... etc, because I let user to choose date range and use pivot tables to returns column heading.

I run another query to get all date information and would like to assign those date information to my column heading of the report. It seems that the Report Builder does not allow me to assign a new caption for the label.

Thanks again for helping and information,

Regards,

Iccsi,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 17, 2013 Sep 17, 2013

Copy link to clipboard

Copied

There are at least two ways to handle this.

The first way is to pass the column headings to the report as parameters.

The second is to use a sub-report that uses a one record result-set which contains the column headings. You will need to set the sub-report's margins to zero to get things to line up properly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 17, 2013 Sep 17, 2013

Copy link to clipboard

Copied

Thanks a million for the information and help,

I use my stored procedure to return my colum heading and have my text on the pager header to link my fields.

Regards,

Iccsi,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 18, 2013 Sep 18, 2013

Copy link to clipboard

Copied

LATEST

You're very welcome.

Glad I could help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation