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 1:19AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.