SSRS 2008 reports in Silverlight 4 apps
-
Hi, I am currently developing in windows form and can display the SSRS reports using the ReportViewer control... Question: 1- Is it possible to display the SSRS reports via silverlight 4? 2- IS it as same as using the report viewer control as I do in windows forms? Thanks
-
Hi, I am currently developing in windows form and can display the SSRS reports using the ReportViewer control... Question: 1- Is it possible to display the SSRS reports via silverlight 4? 2- IS it as same as using the report viewer control as I do in windows forms? Thanks
No report viewer included in Silverlight 4. Maybe some ideas in these.... Implementing SSRS in Silverlight 4[^] Silverlight Reporting Support for SSRS reports – Problem and Possible solutions[^]
Mark Salsbery :java:
-
Hi, I am currently developing in windows form and can display the SSRS reports using the ReportViewer control... Question: 1- Is it possible to display the SSRS reports via silverlight 4? 2- IS it as same as using the report viewer control as I do in windows forms? Thanks
As Mark said there is no native report viewer in Silverlight. There is a 3rd party one available but it is expensive and only works with server based reports. As I need embedded reports (RDLC) so I spawn an ASPX page passing the parameters in the url, while this works it is not satisfactory as the values are exposed and the spawned page just feels flaky. However it does give me a reporting solution in Silverlight, there are some articles on CP that helped. Silverlight Report Viewer using View Model (MVVM)[^] Integrate Reporting Services with Silverlight and RIA Services[^]
Never underestimate the power of human stupidity RAH
-
As Mark said there is no native report viewer in Silverlight. There is a 3rd party one available but it is expensive and only works with server based reports. As I need embedded reports (RDLC) so I spawn an ASPX page passing the parameters in the url, while this works it is not satisfactory as the values are exposed and the spawned page just feels flaky. However it does give me a reporting solution in Silverlight, there are some articles on CP that helped. Silverlight Report Viewer using View Model (MVVM)[^] Integrate Reporting Services with Silverlight and RIA Services[^]
Never underestimate the power of human stupidity RAH
-
Do you mean I can add an .aspx page into my silverlight application and have the report viewer control inside the .aspx page and then call the .aspx from the silverlight page?
This lives in the VM for my reports dialog
private void doReport(object o) { string sReport = o.ToString(); string sURL, sCriteria = string.Empty; switch (sReport) { case"EquipmentList": sCriteria = GetCriteriaEQ(); break; case "EquipmentFleet": sCriteria = GetCriteriaEQFleet(); break; default: break; } sURL = VML.ReportsVMStatic.GetReportsAddress(sReport, sCriteria); gUI.ShowWindow(sURL); AppMessage.DialogCompleted.Send(AppMessage.DialogCompleted.enDialogResult.eTrue); }
GetCriteria returns a string with the criteria formatted specifically for a report and showwindow openns the aspx page
HtmlPage.Window.Navigate(oURI, "_blank");
The page_load of the aspx deals with the query string and gets the data from the database to service the RDLC. As I said ugly but works.
Never underestimate the power of human stupidity RAH
-
As Mark said there is no native report viewer in Silverlight. There is a 3rd party one available but it is expensive and only works with server based reports. As I need embedded reports (RDLC) so I spawn an ASPX page passing the parameters in the url, while this works it is not satisfactory as the values are exposed and the spawned page just feels flaky. However it does give me a reporting solution in Silverlight, there are some articles on CP that helped. Silverlight Report Viewer using View Model (MVVM)[^] Integrate Reporting Services with Silverlight and RIA Services[^]
Never underestimate the power of human stupidity RAH