Print a Report using Delphi 5.
The component RptWorks will be provided that manages prints in Delphi 5.
A sample program that shows the use of Rptworks is enclosed.
Using Rptworks, the coder will write a component that encapsulates the printing of the enclosed report.
Pseudocode:
1. find the total number of days NoOfDays to print thru functions
Function GetFirstDate(var Date:TDateTime):boolean;
Function GetNextDate(var Date:TDateTime):boolean;
GetNextDate returns true if another day to print exists.
1. For each day, find the employees to print thru functions :
Function GetFirstEmp(Date:TdateTime; var EmpName:string):boolean;
Function GetNextEmp(Date:TdateTime; var EmpName:string):boolean;
GetNextEmp returns true if another employee to print exists.
2. For each employee find data to print thru function:
Function GetNote(Date:TdateTime;EmpName:string;var ANote:string):boolean;
Function GetShiftHour(date:TdateTime;EmpName:String;var t1, t2, t3, t4, t5, t6 :TDatetime):boolean
The Hour field must be evaluated as: Hour=(T2-T1)+(T4-T3)+(T6-T5) and printed with format ‘hh:nn’;
If Hour =0 then the string ‘RR’ must be printed in the center of the field,
The background and the text of the field hour must have a particular color, that can be retrieved using function:
procedure GetColor(Date:TDateTime; EmpName:string; var BackColor:TColor; var FontColor:TColor);
date field must be formatted as dd-month-yyyy (i.e. 22-july-1975)
If the value of T1...T6 is ??"1 then the cell must be blank.
The value of the field header and subheader must be written on each page of the report.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows