Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET Crystal Report Library

Status
Not open for further replies.

jf111

Programmer
Apr 4, 2016
15
0
0
GB
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
 
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: [link]http://scn.sap.com/community/crystal-reports/blog/2015/04/01/best-practices-when-using-commands-with-crystal-reports[/url]. 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.

-Dell

DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year
 
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.
 
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 [link]http://scn.sap.com/community/crystal-reports-for-visual-studio[/url] - scroll down and they're on the left of the page. Also, you can find the "official" documentation here: [link]http://help.sap.com/bocrvs2010[/url].

-Dell

DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top