no refresh in the fr4-report

edited 7:17PM in FastReport 4.0
hello,
i have a report with custom-designed-preview on a separate form. if i load the application and call the report-preview then all is ok.
if i change same records from database and i call the preview, there is the same report as before the changes. what can i do.
thanks for any answer!
ciao info339
here my codesnippet in the separate form for the custom-preview

procedure TForm4.FormCreate(Sender: TObject);
begin
frxReport1.PreviewPages.LoadFromFile('4000.fr3');
frxReport1.PreviewOptions.ZoomMode := zmDefault;
frxReport1.Preview := frxPreview1;
if frxReport1.PrepareReport then frxReport1.ShowPreparedReport;
lbl_page.Caption := inttostr(frxPreview1.PageNo)+'/'+inttostr(frxPreview1.PageCount);
end;

procedure TForm4.Prn_btn_cancelClick(Sender: TObject); {end of the preview}
begin
frxpreview1.Cancel;
Form4.Close ;
end;

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:17PM
    before calling load
    call the clear method
    also you may find problems when using the form create event
    may be better to use form show
  • edited 7:17PM
    hi gordk,
    thanks for your tip!
    I am testing and give a feedback.
    ciao
    info

Leave a Comment