Preview not working.

al_nolandal_noland Tulsa, Oklahoma
edited 10:19PM 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 10:19PM
    Does report template loaded to TfrxReport?
    Try
    frxReport1.DesignReport;
    if frxReport1.PrepareReport(true) then
    frxreport1.ShowPreparedReport;
    
  • al_nolandal_noland Tulsa, Oklahoma
    edited 10:19PM
    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 10:19PM
    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

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.