We help IT Professionals succeed at work.

Passing parameters from VB.Net to Crystal Reports

Cookie_Crum
Cookie_Crum asked
on
Medium Priority
418 Views
Last Modified: 2012-06-27
How do I pass a parameter (in this case a DateTime) from VB.Net text boxes to a crystal report during run time, so that the user can specify the date range for the report? Also I want to include a chart on the report, how do I tie the date range within the report to the chart? I am new to VB.Net so any help would be gratefully received! Thanks
Comment
Watch Question

Commented:
Hi Cookie_Crum,

This should get you off to a good start!

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21368136.html

Sounds like this is exactly what you are trying to do with source code.

gl,
Lucas

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks! Just one more question, in the code it asks you to declare a load of stuff like 'Imports CrystalDecisions.CrystalReports.Engine'. Where exactly would you put it?

Author

Commented:
Actually now that I've had a proper look at it I am not entirely sure on the naming conventions used within the code for example they have put 'sID'
and I'm not entirely sure as to what they are refering too!

Commented:
>Just one more question, in the code it asks you to declare a load of stuff like 'Imports CrystalDecisions.CrystalReports.Engine'. Where e
exactly would you put it?

Very top of your Parent form or form running this report. Above Class and Sub Routine calls.

Explain last post a little more or post a new question?  sID looks like a reference to a Crystal Field.  Be aware that this code is missing a report file from Crystal Reports.  Label a report in CR and make sure your report fields match your  .NET app

Thanks for points!

Lucas

PS - I would recommend posting a new question maybe in CR forum unless you are still having trouble on the .NET side.

Author

Commented:
Ok will do, thanks for all your help!

Commented:
np,
Lucas
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.