no refresh in the fr4-report

edited 10:52AM 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 10:52AM
    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 10:52AM
    hi gordk,
    thanks for your tip!
    I am testing and give a feedback.
    ciao
    info

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.