Dim crp As New CRAXDRT.Application
Dim rep As CRAXDRT.Report
Set rep = crp.OpenReport(GlbRepPath + "indent_rep.RPT")
rep.ExportOptions.Reset
rep.EnableParameterPrompting = False
rep.DiscardSavedData
rep.ExportOptions.PDFExportAllPages = True
rep.RecordSelectionFormula = "{I_IndentheadT.IND_NO}='" + txtIndentNo.Text + "'"
vFileName = Left(txtIndentNo.Text, 3) + Right(txtIndentNo.Text, 6) + ".pdf"
rep.ExportOptions.DiskFileName = "d:\indent.pdf" 'App.Path & "\" & vFileName
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.DisplayProgressDialog = False
rep.Export False
My code is for converting crystal report to pdf from VB6. The last line gives the error "File Not Found"