Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Is there a way to print the page header after report header

  1. #1
    Join Date
    May 2003
    Posts
    5

    Default Is there a way to print the page header after report header

    Is there a way to print the page header after the report header on the first page.

    If I set the page header display-on-firstpage to true it displays it above
    the report header. I would like to put the column headers in the page
    header.

    I am using an XML file.

    Thanks
    Karlbh

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Hi,

    our internal event handling always triggers the printing of the page header at the beginning of a new page. There is no way to change this (except modifying the code).

    But for printing column headers on every page, using a groupheader would be the better solution. If you set this group header to repeat, then the header is printed on every new page after the pageheader.

    See also: http://forums.pentaho.org/showthread.php?t=31906

    Have more fun,
    said Thomas

  3. #3
    Join Date
    May 2003
    Posts
    5

    Default

    This maybe out of scope or a RTFM, but can I reference the page-header
    element from the report-header element in the XML. This way I could
    print the page header at any position within the report-header.

    From my sparse knowledge of XML/DTD it appears you can.

    <!ELEMENT report-header (style, default-style, (band | element)*)>

    If possible are then any demo examples I good look at for some
    direction.

    Thanks for your time,
    Karlbh

  4. #4
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Hi,

    no, we have no method of referencing bands from other bands. You can define child bands, but crossreferencing is impossible. It would break the objectmodel.

    Like in the AWT, every band has no more than one parent. Adding an element already contained on one band to another will remove the element from the old band first.

    You may add a copy of the page header to the report header. All elements implement the cloneable interface, so this should be no problem at all.

    Have more fun,
    said Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.