This is a migrated thread and some comments may be shown as answers.

Show a rendered Report in a second ReportViewerControl - Silverlight

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 21 Sep 2010, 08:19 PM
Hi!

I have a rendered report and I like to show this report now in full screen. (without rendering the Report again.)

My idea was to use the ChildWindow of the SL toolkit and replace the DataContext of the ReportViewer in the ChildWindow with the DataContext of my first ReportViewer.
Unfortunately it is not working. There is no error message, only the text "No Report".

Any ideas?
Thank you!


This is the Zoom Method that creates the ChildWindow, as a parameter I send the DataContext of my rendered report.
   
     private void Zoom(object param)
        {
            ReportChildWindow reportChildWindow = new ReportChildWindow(this.ReportViewer.DataContext);
            reportChildWindow.Show();
        }

In the code behind of the ChildWindow I set the DataContext
        public ReportChildWindow(object dataContext)
        {
            this.DataContext = dataContext;

            InitializeComponent();
        }

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Sep 2010, 04:24 PM
Hello Frank,

Our suggestion is to set the report and the reportservice properties to show a report in a child window because the Silverlight Report Viewer cannot work with the same datacontext. 

Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Frank
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or