// protected override CreateParams CreateParams { // get { // if (!DwmApi.DwmAvailable()) { // CreateParams lCrParams = base.CreateParams; // lCrParams.ClassStyle |= 0x00020000; // adding "DropShadow" property to the form // return lCrParams; // } else { // return base.CreateParams; // } // } // } protected void EH_SettingsSelected(CPageSelectorPage aPage) { _ctlSettingsPanel.UpdatePanel(); _ctlToolStrip.PageSet = _setSettings; _ctlToolStrip.SelectedPage = _pHome; _CurrentView = null; }
public void OpenReport(string aTitle, string aRptFile) { CRSReportViewerHost _newRptView = new CRSReportViewerHost(); _newRptView.ReportFile = aRptFile; _newRptView.Title = aTitle; _ctlPageSelector.AddPage(_newRptView.SelectorPage); _newRptView.SelectorPage.PageSelected += new PageEventNotify(EH_RptViewSelected); _ctlPageSelector.VisiblePage = _newRptView.SelectorPage; _newRptView.UIInfoGet += ehRptUIReceieved; _newRptView.OpenReport(); }
protected void ehRptUIReceieved(CRSReportViewerHost aRptHost) { if (aRptHost == _CurrentView) { _gPages.Enabled = true; _gZoom.Enabled = true; _gRefresh.Enabled = true; _gPrint.Enabled = true; _gToFile.Enabled = true; _iGroups.Enabled = true; _iGroups.Pushed = aRptHost.GroupsOn; _iOffline.Enabled = true; _iOffline.Pushed = aRptHost.Offline; } }
protected void EH_RptViewSelected(CPageSelectorPage aPage) { _CurrentView = (CRSReportViewerHost)(aPage.Page); _ctlToolStrip.PageSet = _setReport; _ctlToolStrip.SelectedPage = _pView; _iGroups.Enabled = false; _iGroups.Pushed = false; _iOffline.Enabled = false; _iOffline.Pushed = false; _gPages.Enabled = false; _gZoom.Enabled = false; _gRefresh.Enabled = false; _gPrint.Enabled = false; _gToFile.Enabled = false; _CurrentView.RequestUIState(); //_iGroups.Pushed = ((CRSReportViewerHost)(aPage.Page)).GetGroupPanelState(); //_iZoomWidth.Pushed = ((CRSReportViewerHost)(aPage.Page)).FittingWidth; //_iZoomWnd.Pushed = ((CRSReportViewerHost)(aPage.Page)).FittingWindow; }
protected void EH_CollEditSelected(CPageSelectorPage aPage) { _ctlToolStrip.PageSet = _setCollection; _ctlToolStrip.SelectedPage = _pEdit; _CurrentView = null; }