Solved

Passing parameters to Crystal

Posted on 1998-12-29
2
299 Views
Last Modified: 2010-05-03
I have started using Crystal Reports (version 5 professional) within a VB6 app. by using a Crystal Control.

I can call stand-alone reports quite successfully, however I need to pass parameters to certain reports programatically (Dates, ID's etc)

I know this is possible if I use the Crystal API, but I don't have experience with this. Is it possible with the crystal control without having to set the quirky Crystal SQL statement ?

I would be very grateful for any sample code you may offer.
Thanks in advance.
John
0
Comment
Question by:johnoneill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
Jagar earned 50 total points
ID: 1452907
Just set the SQLStatement property.  You don't have to use Crystal's quirky syntax you can pass it just a regular plain old SQL statement.  One word of caution make sure that the SELECT part contains all the same fields as the report was created with and in the same order.
0
 

Author Comment

by:johnoneill
ID: 6136863
Thanks for the advice, but I need to pass parameters (business logic of the supporting/calling program).

I have since discovered how to pass parameters to Crystal.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

691 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