Controlling Export Options

I have saved my report as a VB class. Everything is working well, however to save confusing my client, I want to limit the amount of export options to just PDF and CSV. I've found various options using Google, but none seems to work when a report is saved as a Class. Does anybody know how to do this.
Thanks, Colin

Comments

  • edited 10:37PM
    turn off 'export' option in previewcontrol, create your own button to export as pdf
                    using (FastReport.Report pdfReport = new FastReport.Report())
                    {
                        pdfReport.Load("frxfile");
                        pdfReport.Report.RegisterData(datatable, datatableName);
                        pdfReport.Prepare();
                        using (FastReport.Export.Pdf.PDFExport pdfExport = new FastReport.Export.Pdf.PDFExport())
                        {
                            pdfReport.Export(pdfExport, "pdfFilename.pdf");
                        }
                    }
    

Leave a Comment