Search code examples
c#crystal-reportsexport

C# Invalid report file path


I need help in solving an error on crystal reports, I'm trying to export data from crystal report to PDF file

enter image description here

Invalid report file path. Can some one help me? thanks

enter image description here


Solution

  • try this code :

    CrystalReport1 crystal = new CrystalReport1();
    
    
        crystal.ExportToDisk(ExportFormatType.PortableDocFormat, "YOUR FILE PATH\ReportAsPDF.pdf");
         MessageBox.Show("Report Export Into PDF File");
    

    hope its useful for you.