Home Devices

CSV File Print to and Headers

edited August 2012 in Devices
When printing a report to a csv file, if you have stuff in the header
and detail bands, the header is printed multiple times (for each page
basically). Is there a way to only print the header band once and then
all the detail. I know you can move that to the title section but then
the report will not look correct in the preview form (or when printing).

Comments

  • edited August 2012
    Hi Jeff,

    My suggestion would be to hide the header band based on which device is
    being printed to. You could use the OnStartPage event to check the
    device and page number to determine whether the header band should show
    or not.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2012
    I tried that and the Report.DeviceType (from the Calc Tab - RAP) is only
    Screen or Printer. I want the header to only be hidden when printing to
    a CSV (Text File). Thanks

  • edited August 2012
    So is there no way to tell if you are printing to a CSV file?

  • edited August 2012
    Hi Jeff,

    Are you exporting from the print dialog? If so, you need to check the
    Report.PrintDialog.DeviceType property to determine which file type the
    user selected. Report.DeviceType is not changed unless it is set before
    the initial call to Print.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.