Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 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);
         }
     }
 }
Esempio n. 5
0
 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);
 }