[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to call Crystal Reports

Posted on 1998-08-24
3
Medium Priority
?
246 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
[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
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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

649 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