Help With FastReports in Delphi 5

So I'm looking at using FastReports to replace Crystal Reports. We are doing that so we can upgrade from delphi 5 to XE2.
Ive created a report in the report designer and when i preview the report everything is fine. but when i try to call the report from delphi the previewer loads but there are zero pages in it. I have no clue what I'm doing wrong at this point and am tired of hitting my head on the wall. Any help would be greatly appreciated.
if fileexists(dmposting.tws_drive+'\tws\FastReports\FRInvoice.fr3') then
        ReportName := dmposting.tws_drive+'\FastReports\FRInvoice.fr3'
      else
        exit;
      //Load Report
      begin
          tfrxreport.LoadFromFile(ReportName);
          if frxReport1.Preparereport then
          frxReport1.ShowpreparedReport;
       end;

Comments

  • gpigpi
    edited 7:43AM
    Check path to report template. Is report template loaded?

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.