I am using Silverlight to design my web application and want to server up PDF reports to customers. Currently i am using a indirect way of creating the reports by opening a ASPX page in a popup, the popup contains the Crystal Reports viewer that generates the report in a PDF that is then displayed to the client. I want to invoke the crystal reports file from within my Silverlight application. Is this possible ? If so how can i do this ?
Kind Regards,
Silverlight does not have a report viewer control for Crystal reports. However, there are two options:
Launch another browser window from Silverlight and open the report in new ASPX page (what you did), or
Embed a new web page that hosts report viewer control inside the web page that hosts Silverlight application.
Related
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
I am using the Aspose PDF tools and have successfully got it to print the pdf which is great, but ideally I want to be able to add a wpf control to display this as well.
I would have assumed that the PdfViewer class would have something, but I can't tell.
So far I have needed to use a different control MoonPdfPanel which is annoying as I would have preferred 1 tool to do both jobs.
Does anyone know of a control I can use to hook into the aspose?
Thanks
We have developed an HTML5 PDF Editor application using Aspose.Pdf for .NET API which you can use in your application as a PDF Viewer as well. You can get the details and complete source code here. You can use the source code to edit the viewer as per your requirement.
P.S. I am working as social media developer at Aspose.
Well, if you are interesting in viewing the PDF file, you may convert the file to HTML and display it using an IFrame in your application. I have developed a sample application which performs different operations including viewing a PDF file in IFrame. Download it and try it at your end. Another option is that you can convert the PDF file to images and display in Imageviewer in your application (Code is available in the above application).
P.S. I am working as social media developer at Aspose.
I am hosting SQL reports on a SQL reporting server. Currently I have my page set up to scroll through different reports using the webbrowser tool. Problem is the reports don't scale at all so the reports either have extra white around them or scroll bars. I was thinking that it would be much easier to work with these reports if I could somehow go to there webpage and simply grab a snapshot of the page. Images scale wonderfully in WPF.
Anyone have any idea how to do this?
I ended up figuring it out
I used URL access parameters to have the report server and browser render it as a PNG, then I just used an image and that link in my WPF
this.ImageSource = new Uri("http://rpt01-wq02/RptServer?/SFD/Reports/HourlyPPM&rs:Command=Render&rs:Format=IMAGE&rc:OutputFormat=PNG&rc:Toolbar=False", UriKind.RelativeOrAbsolute);
In my silverlight application I want to open a xaml in a new web browser. how can I do that?
with HTMLPage.Window.Navigate it is just aspx pages - maybe I can convert xaml to aspx?
10x!
a XAML page cannot be shown in a browser window. What Silverlight do actually is showing the Silverlight program within an < object > tag in the aspx (or html) page; nothing more.
In your silverlight project, if you chose to host your project in a new web site, you will see a second project with both a htm and aspx file that hosts that object that links to your xap file.
So basically, you need to create a second Silverlight project that will be hosted in a different aspx page. Then in your main silverlight project your can open that new aspx page in a new web browser window.
I am a beginner in silverlight. I want to know what is TestPage.aspx and TestPage.html in silverlight. Actually i have google it but din't get enough information. Can any one give me answer??
TestPage.aspx and TestPage.html are the pages which will host your Silverlight content. As you might know, Silverlight is just a project (not a web application) and needs a page that can host it.
These pages are created by default and help you to test your XAML content during your development, which you can later remove from your project.
TestPage.html is dynamically generated by the Silverlight application as part of the Debug process. If you take a look at the Debug tab for the application properties you will see an option to Dynamically generate a test page. If this is selected then you TestPage.html is created in the /Bin/Debug folder of your Silverlight application.
A better solution is to create a web application in the same solution as your Silverlight application then in the properties for the web application go to the Silverlight Applications tab and add your existing Silverlight app to the web project. Also make sure that the Silverlight checkbox is ticked in the Debuggers section of the Web tab of your web application.