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

Print To File with heading only on the first page.

edited September 2010 in General
On RB 12, is there a way to determine when a report is outputting to a
specific file type such as excel?
Only in such situation I would like to hide the header band on pages other
than the first.
How can this be accomplished?

Thanks
Temoc Navarro

Comments

  • edited September 2010
    Hi Temoc,

    Try using an event such as the OnPrintDialogClose to check the
    TppReport.PrintDialog.DeviceType property to see what file device the user
    has selected before the report prints.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2010
    Or use the Report.BeforePrint event.

    example:

    uses
    ppXLSDevice;

    If Report.FileDevice is TppXLSDataDevice then
    // printing to xls data



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2010
    Thank you for your prompt response.

    Temoc Navarro


This discussion has been closed.