Solved

How to call Crystal Reports

Posted on 1998-08-24
3
208 Views
Last Modified: 2010-08-05
i just want to know how to call a crystal reports. For example i want to call it from a visual basic program with SQL statement.

What i want to do is to pass the data i have selected from my visual basic program to Crystal reports and direct it to printer.

pls help me on this.

thanks in advance,

spritep
0
Comment
Question by:spritep
3 Comments
 
LVL 2

Expert Comment

by:vspeter
ID: 1430831
I don't think that you can pass your data directly to crystal report. However have your query as stored procedure and in designing your report, select the stored procedure as your input.

0
 

Accepted Solution

by:
entretec earned 100 total points
ID: 1430832
Seagate now have a FREE Report Designer that send send any datasource directly to a report, etc. It covers DAO, ADO, SQL. The Report Designer runs in the VB5 IDE. Download from www.img.seagatesoftware
0
 

Expert Comment

by:rutexavier
ID: 1430833
First you must add the control to your vb program, so had the crystal Report.ocx control and place it on the from. then supose you give it the name REPORT.
then place a command button in the form and in it place the code:

Report.ReportFileName = "c:\report_file_name.rpt" 'you report file name and path
Report.WindowTitle = "My Report"

'here you must place the formula. between quotes you must put the database table name (socios) and then a point (.) and the field to search (n_socio)
Report.SelectionFormula = "{socios.n_socio} =" & value_to_find
Report.Action = 1

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now