Old style cross-tab : HeaderGroup.ReprintOnNewpage

edited 9:41PM in FastReport 4.0
Hello,

I'm currently using ver. 4.6.65

If the vertical band count is too large to fit one page, an infinite loop occures during the preparation of the report when the Horizontal HeaderGroup.ReprintOnNewPage property is set to True.

Seb.
(sorry for my poor english)

Comments

  • edited 9:41PM

    Hi Seb.
    Try to ask your question again . Its hard to understand it .

  • edited July 2008
    Hi,

    I try again.

    I have to make an old style cross-tab report.

    I design it and while previewing it, I get an infinite loop when the number of columns does is greater than one page. This loop occures when the property ReprintOnNewPage of the horizontal goup header is set to True and when there is a memo in the horizontal group header.

    Here the xml code of a report which shows my problem.
    wrote:
    <?xml version="1.0" encoding="utf-8"?>
    <TfrxReport Version="4.6.65" DotMatrixReport="false" IniFile="\Software\Fast Reports" OldStyleProgress="true" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Par d?©faut" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39629,4803467593" ReportOptions.Description.Text="" ReportOptions.LastChange="39630,4604952083" ScriptLanguage="PascalScript" ScriptText.Text="var
    i, j : integer;
    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
    inc(i);
    j := 0;
    end;

    procedure Memo1OnBeforePrint(Sender: TfrxComponent);
    begin
    inc(j);
    end;

    begin

    end." PropData="044C65667403E80003546F7003E4000844617461736574730100095661726961626C65730100055374796C650100">
    <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
    <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="0" RightMargin="0" TopMargin="0" BottomMargin="0" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxGroupHeader Name="grp" Height="32" Left="0" Top="16" Width="793,7013" Condition="Round(i/100)" ReprintOnNewPage="true" StartNewPage="true">
    <TfrxMemoView Name="mmoGrp" Left="20" Top="16" Width="100" Height="16" ShowHint="false" Color="16700346" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Color="16777215" HAlign="haCenter" ParentFont="false" Text="[Round(i/100)"/>
    <TfrxMemoView Name="mmoLibCol" Left="176" Top="16" Width="100" Height="16" ShowHint="false" Color="16700346" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Color="16777215" HAlign="haCenter" ParentFont="false" Text="Col Caption"/>
    </TfrxGroupHeader>
    <TfrxMasterData Name="md_h" Height="16" Left="0" Top="68" Width="793,7013" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" RowCount="250">
    <TfrxMemoView Name="mmoCell" Left="176" Top="0" Width="100" Height="16" OnBeforePrint="Memo1OnBeforePrint" ShowHint="false" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="15" HAlign="haCenter" ParentFont="false" Text=", [j]"/>
    <TfrxMemoView Name="mmoLibRow" Left="20" Top="0" Width="100" Height="16" ShowHint="false" Color="16700346" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Color="16777215" HAlign="haCenter" ParentFont="false" Text=""/>
    </TfrxMasterData>
    <TfrxMasterData Name="md_v" Height="1122,52041" Left="176" Top="0" Vertical="true" Width="100" ColumnWidth="0" ColumnGap="0" RowCount="15"/>
    <TfrxHeader Name="Header1" Height="1122,52041" Left="20" Top="0" Vertical="true" Width="100" ReprintOnNewPage="true"/>
    </TfrxReportPage>
    </TfrxReport>

    Preview -> infinite loop.

    Setting mmoGrp.ReprintOnNewPage to False -> works fine.

    Setting mmoGrp.RepreintOnNewPage to True and Reducing md_v.RowCount to 5 (for instance, the number of colums fit one page in these case) -> works fine.

    I think it'll be easier to understand with this exemple.

    Best regards

    S?©b.

    PS : I opened a ticket with the same file.
  • edited 9:41PM
    Hello,

    I tried to put a header band in my report and i moved the memo (column title one) from my group header to the new one.

    I set the header band.PrintOnNewPage property to true and the report worked perfectly.

    The infinite loop seems only occuring when there's a memo in a group header whith his PrintOnNewPage property is set to True.

    Problem is i need to keep group title. [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Best Regards. Seb[/img]

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.