Call SSRS from ASP.NET Web Application - asp.net

I have an SSRS Report Server Project Wizard in which I have created a Report named ContractForm.
Now I want to show that report from UI in the another project in asp using C#.
How will I do this?
So far I have tried using Microsoft Report Viewer. But I am getting this error:
"ServerReport.ReportPath could not find"

If you're unsure of your report path, the easiest way to determine it is to browse to the report in your browser of choice, and examine the url. The ItemPath parameter of the query-string is the url encoded path to your report. It will look something like %2fSomeDir%2fMy+Report, which decodes to \SomeDir\My Report.
On the other hand, you may have some other issue, but it's a bit difficult to tell from the information given.

Related

Creating report in asp.net by accessing server side code and not a database

I'm trying to create a report in asp.net by using data from a form that a user fills up.
I know that I can do this in windows form mode by creating a class and using that as a data source for a .rdlc file.
However, in the case of ASP.Net I can't seem to find a similar approach.
What can I do in this case?

SSRS Date Parameter auto postback

I have created .rdl file with two date parameter. The report is working fine in local. But I am facing some difficulties after I integrated the rdl file into ASP.NET MVC application.
The problem is Date Parameter performs postback once I select the date. So I need to wait for some time to go with another parameter and The performance of report is good when test it in local and Database.
Please share me if you have any solution.
Thanks.
Jay

AccessDataSource control reports unrecognizable database

I am running visual studio 2012 express for the web and on the page I added an asp dropdown box. I tried to load the source from an access 2007 database using an asp:AccessDataSource object. The wizzard completed fine. when I ran the page in the web, I got am error message telling me that the database was in an unrecognisable format. I googled the problem and found out the visual studio does not know to use the provider Microsoft.ace.oledb.12.0 and that I would need to modify the connection string.
Since I'm not writing the code for this page, and relying on VS's visual interface to generate the code, how do I find the code to modify it? Or do I simply write my own code and not rely on VS to do it for me?
You can use the sample code on the page here to display the connection string that your AccessDataSource is using. Verify that the connection string includes
Provider=Microsoft.ACE.OLEDB.12.0;
and the path to the Data source is valid.
FWIW, I just tried to recreate your issue under Visual Web Developer 2010 Express with an Access 2010 database and it worked just fine for me. I also couldn't find any evidence that the connection string for the AccessDataSource was actually "written down" anywhere, in Web.config or elsewhere.
According to this blog entry:
AccessDataSource control
The more I consider it, the more pointless this control seems to me. The only good thing about it is that it works. However, it only works for the .mdb format, as it invokes the Jet Provider internally, and this cannot be changed. You cannot use it with password protected file, as it automatically generates the Connection string from the location of the .mdb file, which you feed to the DataFile property
Thus I will either have to work with an .mdb file or generate the code manually. I vote for the manual creation.

Crystal Reports: Refresh Dynamic Parameters in .NET

I am using Crystal Reports 2008 and Visual Studio 2010 (.NET 4.0 framework) to build an ASP.NET web application to display Crystal Reports files through a "CrystalReportsViewer" web control. My application changes the data source of the report at runtime based on a configuration file.
Some of the reports I use have dynamic parameters that pull values from a database table. When I run the Crystal Report, it populates the parameter listbox and allows the user to choose one or many of them. When I run the report in the CrystalReportsViewer control on the ASP.NET page, it gives me an empty text box where the parameters list used to be.
Is there a way that I can 'refresh' or re-populate the dynamic parameters?
Thanks in advance,
-Steven
I've always had trouble with dynamic parameters. I don't use Crystal in the exact same way you are, but I've noticed that when my data comes from a Stored Procedure, the dynamic parameters are empty when I run the report. My workaround is to set the paramters to null when running the report and then clicking OK on the parameter screen. At that point crystal refreshes the parameters list and them I'm presented with the values in the db to select from. Dynamic parameters work well for me when I add the data tables directly to the report instead of using a stored procedure.
I don't know if this really answers your question but I hope it helps.

How to open crystal report page in asp.net

I am using Crystal Report 10.2 version. I have applied paging, and when I open the 3rd page, the following error is raised:
Error in File C:\WINDOWS\TEMP\StatReportNewV {94692B41-40A2-4F6A-9551-110BA7D78A37}.rpt: The request could not be submitted for background processing.
Please help how to resolve this.
It's a fairly generic error in Crystal Reports, but you can try the following:
Make sure you're on the latest service pack
Crystal Reports can create temporary files; make sure there aren't an excessive amount of files in this folder.
Run the same query in your database and see if you have any NULL records coming back, which may be causing an exception in your report.
If the report always crashes on the 3rd page, I suspect there is some data on that third page that you're not handling properly, either because of a function, formatting, invalid data type, something along those lines.

Resources