to lz
procedure TFormDeposit.CustomItem4Click(Sender: TObject);
begin
frReportDeposit.LoadFromFile(reportFilePath+'Reports/Deposit.frf');
fmPreview:=TfmPreview.Create(self);
try
frReportDeposit.Preview:=fmPreview.frPreview1;
frReportDeposit.ShowReport;
fmPreview.Showmodal;
finally
fmPreview.Free;
end;
end;
procedure TFormDeposit.frReportDepositGetValue(const ParName: String;
var ParValue: Variant);
begin
//主数据区
if CompareText(ParName, 'id') = 0 then
ParValue := Grid.Cells [0,grid.Row ];
if CompareText(ParName, 'depositType') = 0 then
ParValue := Grid.Cells [1,grid.Row];
if CompareText(ParName, 'reNo') = 0 then
ParValue := Grid.Cells [2,grid.Row];
if CompareText(ParName, 'amount') = 0 then
ParValue := Grid.Cells [3,grid.Row];
if CompareText(ParName, 'operator') = 0 then
ParValue := Grid.Cells [5,grid.Row];
if CompareText(ParName, 'depositDate') = 0 then
ParValue := Grid.Cells [6,grid.Row];
if CompareText(ParName, 'currencyType') = 0 then
ParValue := Grid.Cells [7,grid.Row];
.......................................