Costumizer designerControl1

edited 12:33AM in FastReport .NET
Hello, what costumizer winform c# with control designerControl1
for sample

disable Menu Load Report
disable Menu Save As
disable Menu New Report

and load report for desing ?

Thanks
Agustin

Comments

  • edited 12:33AM
    hello, what load file

    FastReport.Utils.Res.LoadLocale(Application.StartupPath + "\\RPTSYS\\Localization\\Spanish.frl");
    //FastReport.Utils.Config.UIStyle = UIStyle.Office2007Blue;


    // create report instance
    Report report = new Report();
    designerControl1.Report = report;
    designerControl1.UIStyle = UIStyle.Office2007Blue;

    FastReport.Design.StandardDesigner.DesignerMenu mMenu = designerControl1.Plugins.FindType("FastReport.Design.StandardDesigner.DesignerMenu") as FastReport.Design.StandardDesigner.DesignerMenu;
    if (mMenu == null)
    {
    mMenu = designerControl1.Plugins.Find("MainMenu") as FastReport.Design.StandardDesigner.DesignerMenu;
    }
    if (mMenu != null)
    {
    mMenu.miFileSaveAs.Visible = false;
    mMenu.miFileOpen.Visible = false;
    mMenu.miHelpAbout.Visible = false;
    }


    // no work ??
    designerControl1.Report.Load(Application.StartupPath + "\\valbaran001.frx");


    thanks
  • edited 12:33AM
    Hello,

    Load the report before you assign it to the DesignerControl:

    Report report = new Report();
    report.Load(Application.StartupPath + "\\valbaran001.frx");
    designerControl1.Report = report;
    ...

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.