Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Letterhead

edited November 2011 in General
Hello,

What is the best way to make a report with a Letterhead ? (a image on top of
every page)
I thought pagestyle was the way, but that doesn't print outside the report
margins.
When I set the margins to 0, somehow there is always a situation where
text/data is printed trough the header-image/logo,

I am sure there must be a simple way for this...

kind regards,

Dirk Janssens.

Comments

  • edited November 2011
    Hi Dirk,

    The header band will print at the top of each page of the report by
    definition. I would suggest using this band for the image. If you need
    to place other information near the top of the report, I suggest
    creating a group and placing it in the group header.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2011
    This is a multi-part message in MIME format.
  • edited November 2011
    The best way to do this would be to place the logo, address, general
    report info, and column titles/table header in the Title band and set
    the HeaderBand.PrintOnFirstPage property to False.

    Then, place the logo and column titles/table header in the header band
    for each subsequent page.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2011
    Thanks, I'll give that a try.

    What I was actually hoping for, was a way to get the pagestyle print outside
    of the report margins.
    That would make these kind of 'problems' extremly easy and intuitive:
    set margins of report say 3 cm, put the logo on the pagestyle with margins 0
    header and footer, and no way thing interfere....
    Maybe something for version 15 ;-) ?

    kind regards,

    Dirk.




  • edited November 2011
    Hello nico,

    Almost there...

    The header works fine this way, but now I also want to print a footer (with
    adres info) on *every* page.
    However, the printOnFirstPage/PrintOnLastPage -setting applys to footer and
    header,
    so the footer is now not printed on the first page...

    any suggestions ?

    kind regards,

    Dirk.


  • edited November 2011
    Hi,

    It works now, using printfirstpage,printlastpage = true, and setting
    header.visible=false, when pageno=1 in the Header.BeforePrint - event.

    But now, I have an other problem :

    Sometimes the last page does not contain any detail records, but only the
    summary and the footer.
    How can I detect this , and set the column-headers to visible=false ?

    Something like : "If detailband.count=0 then regionColumnHeaders.Visible =
    False"

    What is the best eventhandler to use for this, and which property gives me
    the number of records on *that* page ?


    kind regards,

    Dirk Janssens.



  • edited November 2011
    Hi Dirk,

    footer and header

    This is incorrect. The HeaderBand and FooterBand each have their own
    PrintOnFirstPage and PrintOnLastPage properties and work independently
    of each other. (I did a quick test and this works as designed).

    Take a look at the following article on preventing orphan summary bands.
    You could use the entire solution or just the part to determine if the
    summary band will fit on the last page to hide the footer.

    http://www.digital-metaphors.com/rbWiki/Design/Formatting/How_To...Prevent_an_Orphaned_Summary_Band

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2011
    Nico,

    I voted for this before and will not get tired to mention it again and
    again:
    we would love to see the pagestyle with a possibility to position
    outside the margins of the report. I think you should make a property
    for this and allow it in the next version.

    Stephan
  • edited December 2011
    Hi Nick,

    This line did the trick in the Header Before Print event :

    if ppReport1.DataPipeline.EOF then
    regColHeaders.visible := False
    else
    regColHeaders.visible := True;

    thanks !

    kind regards,

    Dirk Janssens



This discussion has been closed.