Solved

REPORTSMITH HELP!!!

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

617 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