Print Page | Close Window

Exporting several reports to 1 PDF

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Tips and Tricks
Forum Discription: Have you learned some great tricks to share with the group? Post them here!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3804
Printed Date: 28 Mar 2024 at 3:01pm


Topic: Exporting several reports to 1 PDF
Posted By: TonyZ
Subject: Exporting several reports to 1 PDF
Date Posted: 25 Jul 2008 at 7:34am
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




Replies:
Posted By: hilfy
Date Posted: 02 Aug 2008 at 10:24pm
From Crystal itself, you can't.  It's pretty limited as to what it will do for exports.  If you had access to the Acrobat SDK, you might be able to find a way to append the files together after they're exported, but how to do that is not a question that can be answered here.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: TonyZ
Date Posted: 04 Aug 2008 at 6:18am
That is what I was afraid of.  Thank your for responding Dell.


Posted By: BrianBischof
Date Posted: 09 Aug 2008 at 5:02pm
I also know that there are third party tools that let you combiine multiple reports into a single PDF. I never used them, but I see people talk about them on the forum. You can Google it for more info.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window