Basically I want to convert every crystal report file (.rpt) that is in a certain folder into a pdf. I set up a VB.NET Windows form for a button click to just try with one report first, then eventually I want change to loop through all records when I can get this one working.
Would this be the correct way to do it? Errors it shows for me are
CRAXDRT.Application is not defined
CRAXDRT.Report is not defined
crEDTDiskFile is not declared
crEFTPortableDocFormat is not declared
Here is the code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Transformation.Click
Dim appl As New CRAXDRT.Application
Dim rep As CRAXDRT.Report
rep = appl.OpenReport("c:\mytest.rpt", 1)
rep.ExportOptions.DiskFileName = "c:\pdf_report.pdf"
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
Please help? Thanks ahead of time vikingg97