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

  • Home
  • SEARCH
  • 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 337899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:22:44+00:00 2026-05-12T10:22:44+00:00

I already searched for this and I did not find the answer I was

  • 0

I already searched for this and I did not find the answer I was looking for.

I am writing a windows forms program with C# .NET and Visual Studio 2008. I am using Reporting Services and rendering the reports using the .net provided report viewer. The data source for the reports is SQL Server. I am rendering the reports locally. I am not using a report server. The reports are .rdlc files.

I would like to programmatically add a page footer to the report (not a table footer) based on input from the user in a form. I do know how to pass parameters to a report from a windows form. I don’t know how to use this technique or another technique to dynamically create or remove a footer. When the footer is created on the fly I need to add text.

Currently I have a permanent footer with text boxes that I populate by passing parameters to the report viewer.

List<ReportParameter> parameters = new List<ReportParameter>();

parameters.Add(new ReportParameter("FootnoteLine1", FootnoteLine1.ToString()));

parameters.Add(new ReportParameter("FootnoteLine2", FootnoteLine2.ToString()));

reportViewer1.LocalReport.SetParameters(parameters);

Any help is appreciated.

  • 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-12T10:22:45+00:00Added an answer on May 12, 2026 at 10:22 am

    The only way I was able to achieve the level of flexibility I wanted at runtime was to write code to build the .rdlc file from scratch. The rdlc files are just XML, which means the .net xml classes can be used to generate the file. If the user does not want a footer, then the program simply does not write that part of the xml file.

    MSDN even has a tutorial on how to do this.

    http://msdn.microsoft.com/en-us/library/ms170239.aspx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies if I missed this question already, but I searched and couldn't find it.
I have searched this web looking for an answer, but it seems that this
I searched web for few hours but did not find anything so far. So
Greetings everybody. I am sorry, if this was already asked before (searched in vain)
Please forgive me if this is answered on SO somewhere already. I've searched, and
I have already googled and searched stackoverflow but I can find nothing related to
Everyone: I already searched the error before I posted this to Stackoverflow, so no
Visual Studio (2010, Ultimate) finds nothing when I do Find in Files (Ctrl+Shift+F) in
I already searched here and found similar posts related to this post but i
I searched but I could not find if there is any command that will

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.