none
VS2010 Reportviewer: How do I pass a single image to a RDLC report? As a parameter? RRS feed

  • Question

  • I need to pass a real estate map of properties along with a collection of related property data in a linq query.  I have created an object defining the structure of the linq data and added it as a data source.  I was hoping to simply pass the image to the report as a parameter, but I do not see how to do this in the new reportviewer.  Does anyone have any idea how to get parameters into the RDLC report, or do I need to write the image to disk?

    Also, anyone made any progress on hierarchial objects with the new reportviewer?  It looks like this was omitted.

    Thanks   -BGood

    Sunday, May 16, 2010 3:28 AM

Answers

  • Hi BGood,

    Image based parameters are not supported. Are you using the Report Image item? The image report item can reference content of your dataset by field. This article may help.

    http://msdn.microsoft.com/en-us/library/ms156342.aspx

    For the hierarchical objects, we are looking to enable in an upcoming release. To help us prioritize this feature, you can file a request at http://connect.microsoft.com. This will give the community a chance to vote on it.


    Brad Syputa, Microsoft Reporting Services This posting is provided "AS IS" with no warranties.
    Monday, May 17, 2010 6:34 PM
  • Thanks for the information, Brad.  This is intended as an ad-hoc report.  The image is produced on-the-fly from Linq query data.  I have created an object datasource for the linq query, but there is no database relation to the image. Perhaps just writing the image to a temporary folder on disk is the solution. 

    The hierarchial object datasource solution is more critical for me as documented in: https://connect.microsoft.com/VisualStudio/feedback/details/553592/accessing-nested-objects-in-data-source-of-local-report-does-not-function.  According to Brian Hartmen, the reportviewer team is aware of the bug and it is proposed for correction in a service pack release. 

    I was anxiously awaiting the release of VS2010, and the new Reportviewer feature which allows rendering of rdlc reports to Word, a feature of great interest to my customers.  Unfortunately, the inability of the .net 4.0 Reportviewer to render hierarchical object datasources prevents my data from printing, and after upgrading to VS2010, I am now considering porting all of my code back to VS2008 in order to release my software.  If it is possible for Microsoft to supply a version of the .net 3.5 Reportviewer which will render to word, or a pre-release version of the 4.0 Reportviewer with the hierarchial object bug fix, it would be helpful.

    Thanks, -BGood

    Wednesday, May 19, 2010 3:24 AM

All replies

  • Hi BGood,

    Image based parameters are not supported. Are you using the Report Image item? The image report item can reference content of your dataset by field. This article may help.

    http://msdn.microsoft.com/en-us/library/ms156342.aspx

    For the hierarchical objects, we are looking to enable in an upcoming release. To help us prioritize this feature, you can file a request at http://connect.microsoft.com. This will give the community a chance to vote on it.


    Brad Syputa, Microsoft Reporting Services This posting is provided "AS IS" with no warranties.
    Monday, May 17, 2010 6:34 PM
  • Thanks for the information, Brad.  This is intended as an ad-hoc report.  The image is produced on-the-fly from Linq query data.  I have created an object datasource for the linq query, but there is no database relation to the image. Perhaps just writing the image to a temporary folder on disk is the solution. 

    The hierarchial object datasource solution is more critical for me as documented in: https://connect.microsoft.com/VisualStudio/feedback/details/553592/accessing-nested-objects-in-data-source-of-local-report-does-not-function.  According to Brian Hartmen, the reportviewer team is aware of the bug and it is proposed for correction in a service pack release. 

    I was anxiously awaiting the release of VS2010, and the new Reportviewer feature which allows rendering of rdlc reports to Word, a feature of great interest to my customers.  Unfortunately, the inability of the .net 4.0 Reportviewer to render hierarchical object datasources prevents my data from printing, and after upgrading to VS2010, I am now considering porting all of my code back to VS2008 in order to release my software.  If it is possible for Microsoft to supply a version of the .net 3.5 Reportviewer which will render to word, or a pre-release version of the 4.0 Reportviewer with the hierarchial object bug fix, it would be helpful.

    Thanks, -BGood

    Wednesday, May 19, 2010 3:24 AM