First Report

Hi

I have started to produce my first report, I can preview the report fine in designer and I have saved the report from there.
However when I try to generate the report at run time I only see a brief flash then no report.

I have the following code

IBOQueryPins.Active := False;
frReport1.LoadFromFile('rep1'); // File I saved from designer
IBOQueryPins.Active := True;


if frReport1.PrepareReport then
begin
ShowMessage('prepared OK'); // this message comes up ok
frReport1.ShowPreparedReport ;
end;

Is this the correct way ?

Rgds

Peter
Cyionics Ltd

Comments

  • edited 1:58PM
    seems your report can't be loaded correctly. Quick flash when you trying to preview it says that your report is empty. Try to specify full path to the file you want to load by LoadFromFile method.
  • edited 1:58PM
    Hi Alex

    That doesn't help, I changed the path to an absolute one.
    Are there any checks I can make ?.

    Rgds

    Peter

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.