Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Passing parameters from VB.Net to Crystal Reports

Posted on 2006-03-29
6
Medium Priority
?
402 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
0
Comment
Question by:Cookie_Crum
  • 3
  • 3
6 Comments
 
LVL 3

Accepted Solution

by:
Kudzullc earned 375 total points
ID: 16322994
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
 

Author Comment

by:Cookie_Crum
ID: 16330634
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
 

Author Comment

by:Cookie_Crum
ID: 16330816
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Expert Comment

by:Kudzullc
ID: 16332630
>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
 

Author Comment

by:Cookie_Crum
ID: 16333968
Ok will do, thanks for all your help!
0
 
LVL 3

Expert Comment

by:Kudzullc
ID: 16333978
np,
Lucas
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Loops Section Overview
Screencast - Getting to Know the Pipeline

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question