Report Title
Hello
I??m saving an loading my report from a database using loadfromstram and savefromstram.
How can I change report title? I??changed report.reportoptions.name but title alwys is untitled
thanks
I??m saving an loading my report from a database using loadfromstram and savefromstram.
How can I change report title? I??changed report.reportoptions.name but title alwys is untitled
thanks
Comments
first I llaunch the designer:
then capture save event and save it to DB. Save dialog show "untitled' as report name
and with this code I load report again:
but report name always is untitled.fr3
Thanks
first locate and load the report into the tfrxreport component then
set the report options name then call design report.
ImpresosDataSet.Locate('ID', id, []);
(ImpresosDataSet.fieldByName('Impreso') as TBlobField).SaveToStream(stream);
stream.Position := 0;
// frReport.ReportOptions.Name := 'Nuevo'; you set the name before loading,move this line to
frReport.LoadFromStream(stream);
//here
frReport.ReportOptions.Name := 'Nuevo';
Ok, thanks
I do that, and when I preview report I see 'nuevo' as caption.
but designer caption is "untitled.fr3' and when report is closed ask about to save untitled.fr3.
How can I change this untitled.fr3? or capture this event and show my own message?
I have captured onSveReport event.