Crystal Reports: Refresh Dynamic Parameters in .NET - asp.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.

Related

CRM 2011 some custom reports are not showing any data

Some SSRS Reports are not working in CRM 2011 but other ssrs reports are working fine.
Used filtered views in the Query and ran the report with system Administrator role. It is showing no data available but when tried to run in BIDS it is working and also in Report Manager.
Any idea on this issue, Friends. Please suggest some solution if you have any. Thanks!
Are you use pre-filtering ? When you run report from CRM, default filter is set to records was created in last 30 days (when you use pre-filtering). Maybe your records are olrder than 30 days and in SQL are visible but not in CRM. Try to change filter during run report.
you need to use shared data source. Just click on your current Data Source and convert to Shared one as below. So instead of embedded, select 'Use Shared datasource reference' and make your connection via windows authentication. This was the way which helped me to show data within CRM!

Call SSRS from ASP.NET Web Application

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.

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

Updating SQL Server database with SQL scripts

I have a number of manually written scripts (.sql) for tables, views and stored procedures that are used from an ASP.NET application. These scripts drop the object and recreates them. I need a way to update the database when the scripts change without deleting the object. For example, when a column is added to an existing table that has rows in it, I would need to update this table with this extra column without losing the rows.
I need a way to "update" the database on a single click (I can hook up the changes using a batch file). Does Visual Studio support this kind of functionality?
If you get Visual Studio Team System - Database Edition 2008 - which is now bundled with "Developer Edition" for free - it handles that. Visual Studio database projects without that edition really just store the static SQL that you want to track. The Database Edition is capable of determining the 'deltas' between your SQL and what's in a target database, generating that script, and executing against your database. You do get the option of reviewing that generated SQL, but by default it is very safe [it won't run if it thinks that there will be any data lost].
Yes - it's called Database Projects.
You can define a Visual Studio Database Projects, have create and change SQL scripts inside it, and then execute those against a database connection of your choice when you need to.
See this blog post here for a great explanation, or read the whole series that the 4 guys from Rolla wrote.

Resources