·
Please refer to the
following VB.Net code for exporting to seperate pdf files.
·
Dim rdoc As New
ReportDocument
·
'------------------------------------
·
'Add your code to set rdoc
object
·
'--------------------------------------
·
Dim
exportOpts As ExportOptions = New ExportOptions()
Dim pdfRtfWordOpts As PdfRtfWordFormatOptions =
ExportOptions.CreatePdfRtfWordFormatOptions()
Dim destinationOpts As DiskFileDestinationOptions =
ExportOptions.CreateDiskFileDestinationOptions()
For li_count As Integer = 1 To
pagecount
pdfRtfWordOpts.FirstPageNumber = li_count
pdfRtfWordOpts.LastPageNumber = li_count
pdfRtfWordOpts.UsePageRange = True
exportOpts.ExportFormatOptions = pdfRtfWordOpts
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
destinationOpts.DiskFileName = "D:\report File" & li_count &
".pdf"
exportOpts.ExportDestinationOptions = destinationOpts
exportOpts.ExportDestinationType
= ExportDestinationType.DiskFile
rdoc.Export(exportOpts)
Next
Please let me know the result.