Rpt To Pdf Convert


I am trying to convert a crystal RPT to PDF format, with the PDF having bookmarks from the RPT using Visual Studio (VB).

Whilst the RPT does convert to PDF, there are no bookmarks in the resulting PDF.

However, when I follow these steps, the resulting PDF does contain the bookmarks:

How to convert a Microsoft PowerPoint file to PDF online. Follow these easy steps to turn a Microsoft PowerPoint presentation into a PDF: Click the Select a file button above, or drag & drop a file into the drop zone. Select the PPTX or PPT file you want to convert to PDF. Watch Acrobat automatically convert the file. Download your new PDF. That is from which page to which page i want my records in pdf I used the above code in solution 1 to convert my report in to PDF this converts all the records which are opened in report(.rpt) i want to convert only few records like 4th to 8th only Please suggest. How can I convert Crystal Report file (.rpt) to pdf format in Visaul Basic 6? This is a VB.NET group (see group name). For older versions please turn to.

  • Open the RPT file in Visual Studio
  • Preview Report
  • Export Report (Format: PDF, Destination: Disk File, select 'Create bookmarks from group tree')
My VB code is taken straight from SCN:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument

Dim exportFilePath As String = 'C:crystal_PDFsbookmark.pdf'

Dim myExportOpts As New ExportOptions

Convert Jpeg To Pdf Free

Dim diskOpts As DiskFileDestinationOptions

diskOpts = ExportOptions.CreateDiskFileDestinationOptions()

Dim pdfOptions As CrystalDecisions.Shared.PdfFormatOptions = New PdfFormatOptions()


crReportDocument.SummaryInfo.ReportTitle = 'Hello World'

myExportOpts.ExportFormatType = ExportFormatType.PortableDocFormat

myExportOpts.ExportDestinationType = ExportDestinationType.DiskFile

myExportOpts.ExportDestinationOptions = diskOpts

diskOpts.DiskFileName = exportFilePath

pdfOptions.CreateBookmarksFromGroupTree = True

'Export the report


'Display a message letting the user know the export is complete

MessageBox.Show('Report exported to: ' & exportFilePath & '')

End Sub

  • Visual Studio 2013
  • Crystal Reports for Visual Studio 13.0.9
  • I do not have Crystal Reports designer installed
  • I believe that the RPT file (provided by a colleague) was built using Crystal Reports 8

Could the reason for the bookmarks not being included in the resulting PDF be because I only have CR for VS and not the full Crsytal Reports Designer installed?

Many Thanks

Rpt To Pdf Converter Download



PDF_Bookmarks.png(40.8 kB)
Hi Fergus,
I don't think this answers the issue. First, I see no conversion to .pdf -
to print the cr report and convert it inside cr is trivial, and he's not
asking that. Also, why should he need a pdfwriter driver? If you can
convert to .pdf inside cr, then cr has the driver internally, no? And since
you can do this inside cr, there must be a way to code it as part of the
object model of the reportdocument.
Bernie Yaeger
'Fergus Cooney' <fi******@tesco.net> wrote in message
Hi Jde,
If you can print your Crystal Report from Windows Explorer, and have a
PdfWriter printer driver, then you can use something like:
'In Shell.vb
Imports System.Diagnostics
Public Class Shell
Public Shared Sub Print (sFileName As String)
Dim p As New ProcessStartInfo()
p.FileName = sFileName
p.Verb = 'print'
p.UseShellExecute = True
p.WindowStyle = ProcessWindowStyle.Hidden 'This may have noeffect Try
Catch e As Exception
MsgBox ('Couldn't print ' & p.FileName & vbCrLf &e.Message) 'or
Throw New Exception ('Couldn't print ' & p.FileName, e)
End Try
End Sub
End Class
Shell.Print ('C:ExcitingSome_Crystal_Report.rpt')