您好,通过验证确认, 设计器未提供在该界面增加控件的接口,您可以自定义工具箱
- private static void LoadTools(IToolboxService toolbox, DesignerReportType reportType)
- {
- if (reportType == DesignerReportType.Section)
- {
- foreach (Type type in new Type[]
- {
- typeof (System.Data.DataSet),
- typeof (System.Data.DataView),
- typeof (System.Data.OleDb.OleDbConnection),
- typeof (System.Data.OleDb.OleDbDataAdapter),
- typeof (System.Data.Odbc.OdbcConnection),
- typeof (System.Data.Odbc.OdbcDataAdapter),
- typeof (System.Data.SqlClient.SqlConnection),
- typeof (System.Data.SqlClient.SqlDataAdapter),
- typeof (GrapeCity.ActiveReports.SectionReportModel.TextBox)
- })
- {
- toolbox.AddToolboxItem(new ToolboxItem(type), Properties.Resources.ToolBoxData);
- }
- }
- }
复制代码
|