Sei sulla pagina 1di 1

With CrystalReport1 do

begin
ReportFileName := 'lap_pendaftaran.rpt';
SelectionFormula:='{tbl_pendaftaran.tgl_pendaftaran} >= Date (' + RightStr(D
ateToStr(DateTimePicker1.Date),4) + ',' + MidStr(DateToStr(DateTimePicker1.Date)
,4,2)+ ',' + LeftStr(DateToStr(DateTimePicker1.Date),2) + ')'+
' and {tbl_pendaftaran.tgl_pendaftaran} <= Date (' + Righ
tStr(DateToStr(DateTimePicker2.Date),4) + ',' + MidStr(DateToStr(DateTimePicker2
.Date),4,2)+ ',' + LeftStr(DateToStr(DateTimePicker2.Date),2) + ')';
Destination:= crptToWindow;
WindowState:=crptMaximized;
RetrieveDataFiles;
Action:=1;
end;

Potrebbero piacerti anche