Template problem

Hi,

I'm having a problem when using template.
I don't know why, but when I try to open an inherited report, the PageCount property is 1!

I've created a simple example:

- A father report with just ReportTitle and a Footer;
- A child that extends the father.

The result of below code is 1 (one):

frxReport1.LoadFromFile('child.fr3');
ShowMessage(IntToStr(frxReport1.PagesCount));

Apparently the FastReport is missing the Page Tab, just reading the Data Tab.
What is weird, is that the father report and the child is too simple.

What am I doing wrong ? Is this a bug ?

I'm using the last version.
Please just create an example like I described above.


Thanx!
Best Regards
Thiago Flessak

Comments

  • edited 9:51PM
    Weird...

    I've created the same example (father and child) in runtime, and that worked! PagesCount is 2.
    But, if I use designtime to create the father and then extend to child, PagesCount is 1.
    PS: In designtime I'm using frxDesigner to set TemplateDir.

    I guess the problem is on DesignTime >
  • edited 9:51PM
    Here I am [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Well now I think I know what's my problem. All my reports files are in a separeted folder (App\Reports). The father report is there too. When I put the father on app folder, all is ok. Is there a way to tell to fastreport to load the parent in the same folder of the child ? The only way is using the TfrxDesigner component ? Thanx[/img]

Leave a Comment