Solved

Passing parameters to Crystal

Posted on 1998-12-29
2
298 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

733 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