Add page
I need to print a report several times within a "for", I'm not using the database as I could do to add the same page repeatedly one after the other?
Something like this:
......
for x:=1 to 30 do
begin
try
frxReport1.Variables := '''' + V_NAME + '''';
frxReport1.Variables := '''' + V_VENC + '''';
frxReport1.Variables := '''' + V_BODY + '''';
frxReport1.AddNewPage ??????
end;
finally
frxReport1.ShowReport;
end;
Something like this:
......
for x:=1 to 30 do
begin
try
frxReport1.Variables := '''' + V_NAME + '''';
frxReport1.Variables := '''' + V_VENC + '''';
frxReport1.Variables := '''' + V_BODY + '''';
frxReport1.AddNewPage ??????
end;
finally
frxReport1.ShowReport;
end;
Comments
it seems like all you are doing is making copies of the same report.
If so just set the number of copies after loading the report and before calling showreport.
values ​​are passed to the report this way:
frxReport1.Variables := '''' + V_NAME + '''';
frxReport1.Variables := '''' + V_VENC + '''';
frxReport1.Variables := '''' + V_BODY + '''';
I do not know how to add those pages .
Only one problem, when it generates over 60 reports which begins to generate the other very slow. Is there any way to optimize IT?
I must apologise for my English, thanks for your attention.
I looked in the manuals just do not know how I can implement using TfrxReport.PreviewPages.AddFrom.
Do this case already solved?]
I want to know the solution..
Thanks