Costumizer designerControl1
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
for sample
disable Menu Load Report
disable Menu Save As
disable Menu New Report
and load report for desing ?
Thanks
Agustin
Comments
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
Load the report before you assign it to the DesignerControl:
Report report = new Report();
report.Load(Application.StartupPath + "\\valbaran001.frx");
designerControl1.Report = report;
...