no refresh in the fr4-report
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;
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
call the clear method
also you may find problems when using the form create event
may be better to use form show
thanks for your tip!
I am testing and give a feedback.
ciao
info