fastreport code

因为不同的产品数据格式不一致,导致需要修改后台数据,FastReport工具中有一个code区编写,我想请教一下怎么触发 private void _StartReport(object sender, EventArgs e) 事件,应该双击哪里?

我是在VS2019中引用了 FastReport.Bars.dll FastReport.dll FastReport.Editor.dll 这三个库

使用代码:
Report L_reportGather = new Report();
string frxPath = System.Environment.CurrentDirectory.ToString() + "/配置/外箱.frx";
L_reportGather.Load(frxPath);

        L_reportGather.RegisterData(CreateDataSetTest("23110000000001"));
        L_reportGather.Design();
        L_reportGather.Clear();
        L_reportGather.Dispose();
        L_reportGather = null;

这是整个fastreport界面

img


想知道怎么触发code 区的startPage事件

img

需要触发 _StartReport 事件,需要在代码中调用它。

该事件在 Reportscript 类中定义,可以通过如下代码调用:

Reportscript reportScript = new Reportscript();
reportScript._StartReport(this, new EventArgs());