private string GetDefaultReportName(DesignerReportType reportType) { switch (reportType) { case DesignerReportType.Section: return(Resources.DefaultReportNameRpx); case DesignerReportType.Rdl: return(GetIsMaster() ? Resources.DefaultReportNameRdlxMaster : Resources.DefaultReportNameRdl); case DesignerReportType.Page: return(Resources.DefaultReportNameRdlx); } throw new ApplicationException("Unsupported report type: " + reportType); }
private string GetSaveFilter(DesignerReportType type, bool isMaster) { switch (type) { case DesignerReportType.Section: return(Properties.Resources.SectionReportFilter); case DesignerReportType.Page: return(Properties.Resources.PageReportFilter); case DesignerReportType.Rdl: return(isMaster ? Properties.Resources.RDLReportFilterMaster : Properties.Resources.RDLReportFilter); default: return(Properties.Resources.SectionReportFilter); } }
private static string GetSaveFilter(DesignerReportType type, bool isMaster) { switch (type) { case DesignerReportType.Section: return(Resources.SaveRpxFilter); case DesignerReportType.Page: return(Resources.SaveRdlxFilter); case DesignerReportType.Rdl: return(isMaster ? Resources.SaveRdlxMasterFilter : Resources.SaveRdlFilter); default: return(Resources.SaveRpxFilter); } }
private static void LoadTools(IToolboxService toolbox, DesignerReportType reportType) { if (reportType == DesignerReportType.Section) { //Add Data Providers. 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) }) { toolbox.AddToolboxItem(new ToolboxItem(type), Properties.Resources.ToolBoxData); } } }
private void SetReportName(string reportName) { _reportType = arDesigner.ReportType; _reportName = string.IsNullOrEmpty(reportName) ? Resources.DefaultReportNameRdlx : reportName; Text = Resources.SampleNameTitle + Path.GetFileName(_reportName) + (arDesigner.IsDirty ? Resources.DirtySign : string.Empty); }