Preview not working.

al_nolandal_noland Tulsa, Oklahoma
edited 4:44PM in FastReport VCL 5
Using Fast Report VCL 5.5.8 in Delphi 10.1 Berlin.

I am running the following code.


if frxReport1.PrepareReport(true) then
frxreport1.ShowPreparedReport;


But the report never displays. I don't get any exceptions. Any thoughts why it wouldn't open the preview?

Thanks
Allen

Comments

  • gpigpi
    edited 4:44PM
    Does report template loaded to TfrxReport?
    Try
    frxReport1.DesignReport;
    if frxReport1.PrepareReport(true) then
    frxreport1.ShowPreparedReport;
    
  • al_nolandal_noland Tulsa, Oklahoma
    edited 4:44PM
    gpi wrote: »
    Does report template loaded to TfrxReport?
    Try
    frxReport1.DesignReport;
    if frxReport1.PrepareReport(true) then
    frxreport1.ShowPreparedReport;
    

    The frxreport1.designReport statement doesn't do anything.
  • gpigpi
    edited 4:44PM
    Did you add TfrxDesigner to project? Better to attach small demo project with error here
  • al_nolandal_noland Tulsa, Oklahoma
    edited November 2017
    I added the TfrxDesigner and it does come up now. I discovered there was a naming issue with the reports and that is why it wasn't working.

    Thanks for the help

    gpi wrote: »
    Did you add TfrxDesigner to project? Better to attach small demo project with error here

Leave a Comment