something strange
hello,
I wrote this on a code report:
The second procedure is running ok , but nothing appears concerning the procedure "Header1OnBeforePrint"
it seems that the compiler doesn't read the code [img]style_emoticons/<#EMO_DIR#>/mad.gif" style="vertical-align:middle" emoid="" border="0" alt="mad.gif" /> I try to set[/img]
Sure that there is something wrong but I dont see ?
regards
I wrote this on a code report:
procedure Header1OnBeforePrint(Sender: TfrxComponent);
begin
  if engine.freespace < (fr01cm * 20)                                                   Â
  then engine.newpage;
end;
procedure Child1OnBeforePrint(Sender: TfrxComponent);
begin
child1.visible:=Length( Trim(<frxDBDataset2."LCDETAIL"> ) ) > 0;
end;
The second procedure is running ok , but nothing appears concerning the procedure "Header1OnBeforePrint"
it seems that the compiler doesn't read the code [img]style_emoticons/<#EMO_DIR#>/mad.gif" style="vertical-align:middle" emoid="" border="0" alt="mad.gif" /> I try to set[/img]
if engine.freespace < (fr01cm * 50)Â Â then engine.newpage;
to see what's happen but it is the same ?Sure that there is something wrong but I dont see ?
regards
Comments
I tried your code and here is the result:
1 page empty / 1 page OK / 1 page empty / 1 page OK / .... and so on
regards
Try 'fr1cm' instead of 'fr01cm'.
Petter