Tips and Tricks
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005-2015 : Tips and Tricks
Message Icon Topic: Exporting several reports to 1 PDF Post Reply Post New Topic
Author Message
TonyZ
Newbie
Newbie
Avatar

Joined: 25 Jul 2008
Location: United States
Online Status: Offline
Posts: 3
Quote TonyZ Replybullet Topic: Exporting several reports to 1 PDF
    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



Edited by TonyZ - 25 Jul 2008 at 8:08am
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3668
Quote hilfy Replybullet 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
IP IP Logged
TonyZ
Newbie
Newbie
Avatar

Joined: 25 Jul 2008
Location: United States
Online Status: Offline
Posts: 3
Quote TonyZ Replybullet Posted: 04 Aug 2008 at 6:18am
That is what I was afraid of.  Thank your for responding Dell.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.