Nothing happens...
Hi,
though I can see the report at design time clicking "preview", calling my_Report.ShowReport doesn't show a preview form.
I don't know who wrote the documentation - all of the examples seem to deal with generating the report and PREVIEWING it at design-time. I suppose most developers will try to give the report to their customers - so dealing with calling the report from within a delphi app would be fine
After browsing through the examples provided with FR, I thought calling ShowReport would do the trick - but obviously nothing happens at all?
Does anyone have an idea?
Kind regards,
Mark
though I can see the report at design time clicking "preview", calling my_Report.ShowReport doesn't show a preview form.
I don't know who wrote the documentation - all of the examples seem to deal with generating the report and PREVIEWING it at design-time. I suppose most developers will try to give the report to their customers - so dealing with calling the report from within a delphi app would be fine
After browsing through the examples provided with FR, I thought calling ShowReport would do the trick - but obviously nothing happens at all?
Does anyone have an idea?
Kind regards,
Mark
Comments
It must be simple but what
I have post a query on my local delphi user group, hopefully they can provide me with some ideas. I learnt about fast reports on that
Hi Peter,
The dialog appearing briefly and not doing anything is generally due to the
report not having anything to do (eg, no report loaded).
My suggestion (assuming that you are NOT saving the form in the DFM) is to
make sure that the report is being loaded and prepared:
frReport1.LoadFromFile('C:\Reports\TestReport.frf');
frReport.PrepareReport;
frReport.ShowPreparedReport;
I'm not sure on the procedure if you're saving the report in the DFM, but I
imagine it would be similiar.
Hope this helps,
Jim
It worked for me
Regards:Alex
And as I'm just starting, I simply decided to store the report within the dfm-file. Though saving it as a seperate file is more powerful especially regarding possible updates and extensions for my app - I'll use this feature later ;-)
Cheers,
Mark