Example #1
0
        public RdlReader(bool mono)
        {
            bMono = mono;
            GetStartupState();
            BuildMenus();
            InitializeComponent();
            Application.AddMessageFilter(this);

            this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlReader_Closing);
            _GetPassword  = new RDL.NeedPassword(this.GetPassword);

            // open up the current files if any
            if (_CurrentFiles != null)
            {
                foreach (string file in _CurrentFiles)
                {
                    MDIChild mc = new MDIChild(this.ClientRectangle.Width * 3 / 4, this.ClientRectangle.Height * 3 / 4);
                    mc.MdiParent = this;
                    mc.Viewer.GetDataSourceReferencePassword = _GetPassword;
                    mc.SourceFile = file;
                    mc.Text       = file;
                    mc.Show();
                }
                _CurrentFiles = null;                           // don't need this any longer
            }
        }
        public RdlUserControl()
        {
            InitializeComponent();

            _GetPassword = new RDL.NeedPassword(this.GetPassword);

            rdlEditPreview1.OnSelectionChanged += SelectionChanged;
            rdlEditPreview1.OnReportItemInserted += ReportItemInserted;
            rdlEditPreview1.OnOpenSubreport += OpenSubReportEvent;
            rdlEditPreview1.OnSelectionMoved += SelectionMoved;
            rdlEditPreview1.OnDesignTabChanged += DesignTabChanged;
            mainProperties.HidePropertiesClicked += delegate(object sender, EventArgs e)
            {
                ShowProperties(!_ShowProperties);
            };
        }
Example #3
0
        public RdlReader(bool mono)
        {
            bMono = mono;
            GetStartupState();

            InitializeComponent();

            BuildMenus();
            // CustomReportItem load 
            RdlEngineConfig.GetCustomReportTypes();

            Application.AddMessageFilter(this);

            this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlReader_Closing);
            _GetPassword = new RDL.NeedPassword(this.GetPassword);

            // open up the current files if any
            if (_CurrentFiles != null)
            {
                foreach (var dict in _CurrentFiles)
                {
                    MDIChild mc = new MDIChild(this.ClientRectangle.Width * 3 / 4, this.ClientRectangle.Height * 3 / 4);
                    mc.MdiParent = this;
                    mc.Viewer.GetDataSourceReferencePassword = _GetPassword;

                    mc.SourceFile = dict.Key;
                    if (dict.Value != string.Empty)
                    {
                        mc.Parameters = dict.Value;
                    }

                    mc.Text = dict.Key.LocalPath;

                    if (_CurrentFiles.Count == 1)
                    {
                        mc.WindowState = FormWindowState.Maximized;
                    }

                    mc.Show();

                }
                _CurrentFiles = null;		// don't need this any longer
            }

        }
Example #4
0
        public RdlUserControl()
        {
            InitializeComponent();


            _GetPassword = new RDL.NeedPassword(this.GetPassword);


            rdlEditPreview1.OnSelectionChanged   += SelectionChanged;
            rdlEditPreview1.OnReportItemInserted += ReportItemInserted;
            rdlEditPreview1.OnOpenSubreport      += OpenSubReportEvent;
            rdlEditPreview1.OnSelectionMoved     += SelectionMoved;
            rdlEditPreview1.OnDesignTabChanged   += DesignTabChanged;
            mainProperties.HidePropertiesClicked += delegate(object sender, EventArgs e)
            {
                ShowProperties(!_ShowProperties);
            };
        }
Example #5
0
        public RdlReader(bool mono)
        {
            bMono = mono;
            GetStartupState();

            InitializeComponent();

            BuildMenus();
            // CustomReportItem load
            RdlEngineConfig.GetCustomReportTypes();

            Application.AddMessageFilter(this);

            this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlReader_Closing);
            _GetPassword  = new RDL.NeedPassword(this.GetPassword);

            // open up the current files if any
            if (_CurrentFiles != null)
            {
                foreach (var dict in _CurrentFiles)
                {
                    MDIChild mc = new MDIChild(this.ClientRectangle.Width * 3 / 4, this.ClientRectangle.Height * 3 / 4);
                    mc.MdiParent = this;
                    mc.Viewer.GetDataSourceReferencePassword = _GetPassword;

                    mc.SourceFile = dict.Key;
                    if (dict.Value != string.Empty)
                    {
                        mc.Parameters = dict.Value;
                    }

                    mc.Text = dict.Key.LocalPath;

                    if (_CurrentFiles.Count == 1)
                    {
                        mc.WindowState = FormWindowState.Maximized;
                    }

                    mc.Show();
                }
                _CurrentFiles = null;           // don't need this any longer
            }
        }
Example #6
0
		public RdlReader(bool mono)
		{
			bMono = mono;
			GetStartupState();
			BuildMenus();
			InitializeComponent();
			this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlReader_Closing);
			_GetPassword = new RDL.NeedPassword(this.GetPassword);

			// open up the current files if any
			if (_CurrentFiles != null)
			{
				foreach (string file in _CurrentFiles)
				{
					MDIChild mc = new MDIChild(this.ClientRectangle.Width*3/4, this.ClientRectangle.Height*3/4);
					mc.MdiParent = this;
					mc.Viewer.GetDataSourceReferencePassword = _GetPassword;
					mc.SourceFile = file;
					mc.Text = file;
					mc.Show();
				}
				_CurrentFiles = null;		// don't need this any longer
			}

		}
        List<string> _Toolbar = null; // temporary variable for toolbar entries

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Designer constructor.
        /// </summary>
        /// <param name="IpcChannelPortName">The IPC channel that the designer will use.</param>
        /// <param name="openPreviousSession">True or False open the previous reports that were open in the designer.</param>
        public RdlDesigner(string IpcChannelPortName, bool openPreviousSession)
        {
            InitializeComponent();

            KeyPreview = true;
            GetStartupState();

            // Intialize the recent file menu
            RecentFilesMenu();
            propertiesWindowsToolStripMenuItem.Checked = _ShowProperties;
            IsMdiContainer = true;

            Application.AddMessageFilter(this);

            this.MdiChildActivate += new EventHandler(RdlDesigner_MdiChildActivate);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlDesigner_Closing);
            _GetPassword = new RDL.NeedPassword(this.GetPassword);

            InitToolbar();

            // open up the current files if any
            if (_CurrentFiles != null && openPreviousSession == true)
            {
                foreach (Uri file in _CurrentFiles)
                {
                    CreateMDIChild(file, null, false);
                }
                _CurrentFiles = null;		// don't need this any longer
            }

            DesignTabChanged(this, new EventArgs());		// force toolbar to get updated
        }
Example #8
0
		public RdlDesigner(bool mono)
		{
			bMono = mono;
			GetStartupState();
			BuildMenus();
			InitializeComponent();
            
			this.MdiChildActivate +=new EventHandler(RdlDesigner_MdiChildActivate);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.RdlDesigner_Closing);
			_GetPassword = new RDL.NeedPassword(this.GetPassword);

			InitToolbar();
			InitStatusBar();

			// open up the current files if any
			if (_CurrentFiles != null)
			{
				foreach (string file in _CurrentFiles)
				{
					CreateMDIChild(file, null, false);
				}
				_CurrentFiles = null;		// don't need this any longer
			}

			DesignTabChanged(this, new EventArgs());		// force toolbar to get updated
		}