Skip to Content
author's profile photo Former Member
Former Member

CRVS2010 - WPF binding the ReportDocument to a view model variable

hi.

I can see how to set the ReportDocument in the viewer using the code behind.

Is it possible to set it using data binding - so I can have a property "CurrentReportDocument" in my view model and have it bound to the report the WPF viewer is displaying?

thanks

Peter

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2010 at 07:43 AM

    Hi.

    I can't see how to bind the .ReportSource property in the XAML - it doesn't show up in intellisense.

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2010 at 07:50 AM

    Bump!

    Does anyone know how to bind to the report property? Perhaps it would help if I could read the help files - but they don't seem to be included in the beta 2 download and the link I found somewhere to the help files isn't valid anymore.

    peter

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      The only way to bind a report to the WPF viewer is to set it's .ReportSource property to an instance of a ReportDocument object. It sounds like you've already figure this part out, but not sure how you want to bind the report to the viewer.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.