property Variables
here is the example
begin
frxReport.Variables := 12;
frxReport.Variables := 12.7;
repeat
frxReport.ShowReport;
until MessageDlg ('Report is printed OK ?', mtConfirmation, [mbYes, mbNo], 0) = mrYes;
end;
and when I choose button NO from the dialog then the DELPHI raises an exception......
because all values from property Variables have already ' around, what I mean
first time
frxReport.Variables = 12;
second time
frxReport.Variables = '12';
P.S. I've tried version 4.5
begin
frxReport.Variables := 12;
frxReport.Variables := 12.7;
repeat
frxReport.ShowReport;
until MessageDlg ('Report is printed OK ?', mtConfirmation, [mbYes, mbNo], 0) = mrYes;
end;
and when I choose button NO from the dialog then the DELPHI raises an exception......
because all values from property Variables have already ' around, what I mean
first time
frxReport.Variables = 12;
second time
frxReport.Variables = '12';
P.S. I've tried version 4.5
Comments
I've called 2 or more times because I need the report to be printed and that depends 100 % of the operator
anyway I found a solution.... one or two of my variables are a float numbers but sometime they have no fractal part .... they are single prices
when use
Variables := Format ('%.2f', [test1])
then the second/third call of ShowReport and combination of '24.00' gives to the engine again float number even it is in '....'
perhaps I should try this
ShowPreparedReport;
repeat
ShowPreparedReport;
until ........