Passing parameters from VB.Net to Crystal Reports

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
Cookie_CrumAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KudzullcCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cookie_CrumAuthor 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?
0
Cookie_CrumAuthor 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!
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

KudzullcCommented:
>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.
0
Cookie_CrumAuthor Commented:
Ok will do, thanks for all your help!
0
KudzullcCommented:
np,
Lucas
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.