Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

.NET Crystal Report Library

.NET Crystal Report Library

.NET Crystal Report Library

Using a .NET web application, is there a way to dynamically load a Crystal Report, say from a dropdown list, then have the CrystalReportViewer take care of prompting for any parameters? When I've tried to do this previously it doesn't seem to work so I had to build the parameters into my page using the SetParameterValue function in the CrystalDecisions library.

I've got quite a lot of reports and want to have them available on a webpage for authenticated users (I can take care of this with Windows Authentication).

Alternatively, is there a way to dynamically get the parameters from a report and generate an input (text box, date picker, etc) and pass them back to the CrystalReportViewer?

Any help appreciated, thanks

RE: .NET Crystal Report Library

Yes, it should work the way you envision. However, there is also a way to get the parameter info from the report, but not the values for dynamic parameters - just the parameter names, text, and datatype - using the SDK.

What version of Visual Studio are you using and what version of Crystal?

If you're on VS 2010 or newer, you need to get the latest version of the SDK from here: http://scn.sap.com/community/crystal-reports/blog/2015/04/01/best-practices-when-using-commands-with-crystal-reports. Use the "Install Executable" to get integration into Visual Studio - the other downloads are various forms of runtime installs that you can use when deploying your application.


DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year

RE: .NET Crystal Report Library

Thanks for the response.

I've got both VS2010 and VS2015 with the CR for VS runtimes installed, on separate machines. I could potentially have any version with my licensing.

It's very difficult to find accurate documentation about the SDK and what's in the Crystal Decisions library, etc.

RE: .NET Crystal Report Library

Take a look at the Programs list in the Control Panel on each of the machines - it will tell you which service pack of CR for VS that you have. If it's not SP16, you'll need to upgrade to the latest.

Even though the documentation sucks, there is lots of sample code available in links from this page http://scn.sap.com/community/crystal-reports-for-visual-studio - scroll down and they're on the left of the page. Also, you can find the "official" documentation here: http://help.sap.com/bocrvs2010.


DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close