Solved

REPORTSMITH HELP!!!

Posted on 1997-04-30
2
695 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

20 Experts available now in Live!

Get 1:1 Help Now