Page 1 of 1

Can't bind StiSLViewerControl Report property in XAML

Posted: Sun Jul 10, 2011 3:15 pm
by scott
Hi, again.

I am trying to bind to the Report property of an StiSLViewerControl in XAML but it appears that the Report property is not a dependency property.
I'm using MVVM Light to implement my code in the MVVM pattern.

Reports.Ultimate 2011.1 (in the GAC with no other versions)
Silverlight 4


The Exception:

Message=Set property 'Stimulsoft.Report.Viewer.StiSLViewerControl.Report' threw an exception.
Message=Object of type 'System.Windows.Data.Binding' cannot be converted to type 'Stimulsoft.Report.StiReport'.


The Bound Property (in my ViewModel):

Code: Select all

public const string ReportViewPropertyName = "ReportView";
private StiReport _reportView = new StiReport();
public StiReport ReportView
{
    get { return _reportView; }
    set
    {
        if (_reportView == value)
            return;

        _reportView = value;
        RaisePropertyChanged(ReportViewPropertyName);
    }
}

void proxy_GetReportStatisticsCompleted(object sender, GetReportStatisticsCompletedEventArgs e)
{
    StiReport report = new StiReport();
    report.LoadDocument(e.Result);   // e.Result is a byte[ ]

    this.ReportView = report;
}

The XAML (in my View):

The View's DataContext is set to my ViewModel class.


Thanks,
Scott

Can't bind StiSLViewerControl Report property in XAML

Posted: Mon Jul 11, 2011 6:17 am
by Andrew
Hello,

Now the Report property is not DependencyProperty. In a week or two we will do some improvements in this direction.

Thank you.

Can't bind StiSLViewerControl Report property in XAML

Posted: Tue Jul 12, 2011 4:02 pm
by scott
Thanks so much, Andrew. I look forward to the improvements. You all have the best support of any company I've ever dealt with.

Best regards,
Scott

Can't bind StiSLViewerControl Report property in XAML

Posted: Tue Jul 12, 2011 10:55 pm
by Andrew
Hello,

Thank you for your good words!

Can't bind StiSLViewerControl Report property in XAML

Posted: Fri Sep 23, 2011 4:52 am
by RichFinnegan
Hi Andrew,

Any update on when this problem will be solved?

I'm evaluating the 2011.2 versions of Reports and Reports.Designer for Silverlight and I also get the same results as Scott.

regards Richard

Can't bind StiSLViewerControl Report property in XAML

Posted: Fri Sep 23, 2011 8:33 am
by Alex K.
Hello,

We have added your request to our to-do list.
In a week or two we will do some improvements in this direction.

Thank you.