Page number bug

edited 10:37PM in FastReport 3.0
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 10:37PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.