Can't bind StiSLViewerControl Report property in XAML

Stimulsoft Ultimate discussion
Post Reply
scott
Posts: 21
Joined: Tue Feb 22, 2011 1:57 pm
Location: USA

Can't bind StiSLViewerControl Report property in XAML

Post 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
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Can't bind StiSLViewerControl Report property in XAML

Post 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.
scott
Posts: 21
Joined: Tue Feb 22, 2011 1:57 pm
Location: USA

Can't bind StiSLViewerControl Report property in XAML

Post 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
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Can't bind StiSLViewerControl Report property in XAML

Post by Andrew »

Hello,

Thank you for your good words!
RichFinnegan
Posts: 23
Joined: Fri Sep 23, 2011 4:43 am
Location: Germany

Can't bind StiSLViewerControl Report property in XAML

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Can't bind StiSLViewerControl Report property in XAML

Post 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.
Post Reply