Solved

REPORTSMITH HELP!!!

Posted on 1997-04-30
2
724 Views
Last Modified: 2006-11-17
For my program in Delphi I need to make about 50 reports. I think it's best to make them in ReportSmith 3.0. Though I can not work with it. How can I use reports in my Delphi program and can I give variables to my report.
Example: Report for all students with a group the user can choose
Database : Name Groep Lastname Result
             Tom Fr04  De Decker  5
             Stijn Fr03 De Decker 4
            Jens  Fr04  De Decker 5
            Gordian Fr04 Vermarien 2
I need to make a report of all students who are in group Fr04 and have at least 5 and of all students who are in group Fr03. The groups should be variabels to the report
1 report for all groups. is this possible? Can I give variables from my delphi program to my report??
HOW??? Please Help Me It's urgent!!!!!!!!!!!!!
You'll get good points
:) Thanx to anybody wwho wants to help me with a FULL explanation.
0
Comment
Question by:DDTom23
[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
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 120 total points
ID: 1335787
First of all I should tell you that it's much more easier
using TQuery instead of ReportSmith, but anyway, here you go:
- In order to get that report you first access ReportSmith and
 select the table you want from the Tables section.
- Then you go to Report Variables tab and define your two
 variables which would be Group1 (to chose the first group
 you want the students result to be greater or equal than 5)
 and Group2 (for the students who are in Fr03 in your example).
- Now you go to Selections and set the selection criteria, that
in your case, it would look something like this:

 . Include records in the report where 'any' of the following    aply
   1. 'all' of the following aply
     1.1. 'datafield' 'table1.Group' 'is equal to' 'report            variable' 'Var1'
     1.2. 'datafield' 'table1.Result' 'is greater than or equal            to' 'number' 5
   2. 'datafield' 'table1.Group' 'is equal to' 'report variable'       'Var2'

- Once you have all this set, you save the report and then access ReportSmith component property InitialValues, where you can set by code the variables you want to pass.
i.e.
Report1.InitialValues.Add('Var1=<'+YourSelectedGroup1+'>');
Report1.InitialValues.Add('Var2=<'+YourSelectedGroup2+'>');
Report1.Run;

Hope this helps
0
 
LVL 2

Expert Comment

by:javiertb
ID: 1335788
Hey, there! Could you evaluate my answer, please?
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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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