CSV File Print to and Headers
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).
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).
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Screen or Printer. I want the header to only be hidden when printing to
a CSV (Text File). Thanks
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com