Hey, can anyone tell me how to export multiple crystal reports to one PDF file? My customer would like to send a group of reports to a single PDF with one click. When I use an ExportToDisk command in a loop each successive export overwrites the PDF. How do you tell it to append the file instead of overwriting?
I've tried a single line export like this:
rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\Outfile.pdf")
and also tried the export function:
rpt.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
rpt.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormatDim options As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
options.DiskFileName = "C:\Outfile.pdf"
rpt.ExportOptions.DestinationOptions = options
rpt.Export()
Thanks,
TonyZ
Edited by TonyZ - 25 Jul 2008 at 8:08am