Page number bug

Hi,
I have a report that prepares about 75 invoices then prints them all at once..
Code looks something like this...


While looking at data do
Begin
if FirstReport then
begin
firstReport := False;
InvoiceReport.PrepareReport;
end
else
InvoiceReport.PrepareReport(false);
End;

InvoiceReport.ShowPreparedReport;

The reports looks fine.. but the page numbers are all messed up . They arent resetting on each invoice. After the first page, They dont start over on page 1... They all start on page 2 after the first page.. Weird.. It appears to be a bug..
I am using the latest version...


I am using the [Page] sys var, not [Page#]

Comments

  • edited 9:04PM
    Just checked it on the demo, it works well. Code is:

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    frxReport1.LoadFromFile('1.fr3');
    frxReport1.PrepareReport(True);
    frxReport1.LoadFromFile('2.fr3');
    frxReport1.PrepareReport(False);
    frxReport1.ShowPreparedReport;
    end;

Leave a Comment