Angular Single Page application and SSRS reports - angularjs

We are creating a SPA with AngularJs and want to integrate our existing SSRS reports in this application. We have SSRS reports already consumed by our WPF application using .Net Report Viewer but, we are not sure how we will be able to that in this web application.
One thought we have is that we can create a ASP.Net application which will have a app folder that contains all the templates of our application and for reports we can have normal aspx page and add a report view control on that page.
But, we dont want to use ASP.net just for this purpose.
Does anyone has any idea if we can render SSRS reports in simple HTML page and have basic functionality like save, print which are there in report viewer
Thanks for the help

I know that this is an old question, but just in case somebody else will still came upon it, here can be a possible solution for the problem. The solution described here will allow you to display the report as PDF, having the possibility to print or save it.
Integrating SQL Server Reporting Services (SSRS) with Web-API and AngularJS by Chris Briggs
http://blog.chrisbriggsy.com/the-first-step-towards-integration
http://blog.chrisbriggsy.com/How-to-Integrate-SSRS-and-WebAPI
http://blog.chrisbriggsy.com/AngularJS-SSRS-Pdf-integration
Best,
Razvan

Related

SSRS: Refresh one dataset not the entire report

I have added multiple charts on one report and each one is dependent on other one. I have used action->Go To Report to refresh another chart on click of the current chart. But the issue is that its refreshing all the charts/datasets on the current report. I just want to refresh one chart and preserve the value/data of others.
Sorry Rishi, but this is not possible with a simple SSRS dashboard, just using the SSRS designer.
There are a few ways to achieve this result with a lot of effort, but each one is essentially coding a master webpage that displays multiple SSRS reports in separate containers on the same page. Then you use server-side ASPX code, or client-side javascript code to interact with the SSRS apis and pass parameters and reload the report(s) that you wish.
Here is one demo site that using javascript on a SharePoint, PerformancePoint Dashboard to achieve the effect.

What if we don't host our silverlight Application when we first Create it?

As we all know very well..
whenever we create application inside silverlight it is asking us for hosting it
by dialogue box at given below.
My question is what if i unchecked the check box[Host the silverlight application in a new web site].
Means what kind of problem we have to face later if I don't host our Silverlight Application in any of the option given by dialogue box.
Basically it is not a problem at all. You can add a website at any time later.
In the project settings of a website there is a Silverlight tab. Under that you will find the option to add Silverlight projects to the website. This will setup the links to generate the XAP in ClientBin as well as giving you the option to create test pages for each Silverlight app added. The test pages will give you the sample JS you need to host your Xap later.
You will have to eventually host your application somewhere otherwise it will stay on your local harddrive and hardly reach any clients. So if you have an existing web site you could simply copy-paste the necessary javascript to this site later in order to embed your Silverlight application. In this case you can uncheck this checkbox.

What is the best way to make a full page Silverlight web part in SharePoint 2010

I want to make a silverlight web part hosted in SharePoint 2010 that will take up the entire screen. I know how to get rid of all the SharePoint navigation through CSS or a custom master page, but I'm struggling with how to get a web part zone to grow to the full height available. I've messed around with using CSS or jquery to set the heights of the various tables and divs that wrap a web part and haven't found a good solution. Has anyone done this?
How about not using a webpart, and just embedding the Silverlight application into an empty page with an empty masterpage?
You can grab the html or aspx page that Visual Studio generates when you create an new Silverlight project.
I would suggest you to get a new master page for this purpose. You can get the minimal master page here:
http://blog.drisgill.com/2009/11/starter-master-pages-for-sharepoint.html

Screen scraping silverlight browser application info

I'm registered to a site which uses a silverlight application that shows some personal information.
My goal is to be able to read some data from the silverlight application.
Is it possible?
I know that this could be done to a regular web page using curl.
but, what about silverlight application?
Does it store the information to a file or something like that?
Thanks
You can use White, a tool for automating windows applications, to get information out of a running Silverlight application. White is mainly used to perform functional testing of applications, but it should allow you to extract information from the application as well.
Look here for an example of White and Silverlight: http://www.codeplex.com/wikipage?ProjectName=white

Setting datasource on a Reporting Service report

i have a drop down list contains the name of reports and each report have a value (1,2,3...) and i have a popup window that appears when user click on view report button
this popup is a web page that contains the report viewer ,,in cs of this popup page i have a swtich that takes int which is the value of the report eg.if i want to display the first report so i chose the first one in the drop down list and the selected value is 1 and it is passed to the page that contains the report viewer in a session variable and pass it to switch then case 1;........break
so i want to know how to create an object of type report and bind it to the report viewer in each case ,,i have made something like that but i used crystal reports and crystal report viewer which has a
CrystalReportViewer1.ReportSource = rpt;
CrystalReportViewer1.DataBind();
and i have a report object
rpt.SetDataSource(dt);
ReportDocument rpt;
but i cant do anything like that when i used reporting service
so please help
thanks
You are talking about the Microsoft SQL Server Reporting Services (SSRS), right?
The approach is a bit different than with Crystal - basically, SSRS is by default a server-based reporting engine, e.g. your application (Winforms or ASP.NET or whatever it is) doesn't actually render the report locally, and also it doesn't supply the data locally.
In SSRS, this is typically handled by the report itself and on the server. You typically only simply show the report (possibly configured with some report parameters), but all in all, the Reporting server will grab the data, format it, render the report, and your application really only shows the output in the end.
If you want to render a SSRS report locally, you need to have a *.rdlc file - do you have this, are you familiar with that option?
If you do - once you're into locally rendering the report, of course, you will also have to provide the data locally. If you use the ASP.NET or Winforms ReportViewer control, you can do this something like this:
ReportViewer reportViewer = new ReportViewer();
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.LocalReport.ReportPath = "Report1.rdlc"; // supply path to the RDLC file
reportViewer.LocalReport.DataSources.Add(.........)
reportViewer.RefreshReport();
Basically, you need to tell the ReportViewer control that you're dealing with local rendering, and then you need to give it the path to the RDLC file, and you can add as many data sources to the ReportViewer.LocalReport collection as you need to have for your report.
Does that help at all? Otherwise, please clarify your question a bit more.
See a VB.NET sample of retrieving data for a local report from a web service here.
I tried doing this a while ago. I gave up because it wasn't that important, but my idea was this:
Use web service to create a new datasource
Use the web service to change the data source on the report
Render the report in ReportViewer
Switch DataSource back to original using web service.
My knowledge of ssrs is limited, but might be worth a shot.

Resources