Viewer menu configuration

Hello,


I'm trying the FastReport Open Source, and i have 3 questions.

1 - How can i use c# classes to build a report, i don't want to use a database connection direct on the report, i need to reference the classes from the designer, but i don't know how to do it?


2 - How can i change the export menu in the previewer? I have some reports requerements that the users can only print or export to pdf.


3 - On exporting to pdf, can i sign it with our certificate?


Thanks,

Frederico

Comments

  • 1 - report1.Dictionary.RegisterBusinessObject();

    2,3 - In the community version PDF export is cutted (have very small functional)

  • Hello!

    Generating reports based on C# classes in the designer: pass a collection of business objects using `report.RegisterData(list, “MyObjects”, maxNestingLevel)` (or `report.Dictionary.RegisterBusinessObject(...)`) and call report.Design()—the classes and their properties will appear in the designer’s Data pane without a database connection.

    To restrict buttons and export formats in PreviewControl, set the enumeration masks before displaying:

    Config.PreviewSettings.Buttons = PreviewButtons.Print | PreviewButtons.Save | PreviewButtons.Find | PreviewButtons.Close;
    Config.PreviewSettings.Exports = PreviewExports.PDFExport;
    previewControl1.Buttons = Config.PreviewSettings.Buttons;
    previewControl1.Exports = Config.PreviewSettings.Exports;
    

    PDF digital signature: Full-featured PDFExport with a digital signature certificate (DigitalSignCertificate, PDF/A) is available only in the commercial version of FastReport .NET; only the basic PDFSimpleExport (FastReport.OpenSource.Export.PdfSimple package) is available in the OpenSource version.

This discussion has been closed.