none
Modifying Report Properties at Runtime RRS feed

  • Question


  • I have a need to be able to modify the margin settings for a report at run time.  This report is printed on a custom pre-printed form - each batch from the supplier has slightly different margin spacing thus requiring redeployment of the report with each shipment of forms.

    My ideal solution to this would be to pull the margin settings from a database and pass them into the report as parameters.

    I am working in VS2008 with a project converted from VS2005 using the ReportViewer control and a local report.

    Any suggestions are greatly appreciated.

    Thanks in advance.
    Tuesday, February 24, 2009 6:39 PM

All replies

  • We are working on some additional APIs to the report viewer to make this easier in the future.  For now, since you are viewing reports in local mode, you could always modify the RDLC before loading the report definition into the viewer.  The report definition is XML and can easily be modified on the fly.
    Saturday, February 28, 2009 4:51 AM
    Moderator