fyiReporting.RdlDesign.RdlEditPreview.SetRdlText C# (CSharp) Method

SetRdlText() public method

public SetRdlText ( string text ) : void
text string
return void
        public void SetRdlText(string text)
        {
            if (_CurrentTab == DesignTabs.Design)
            {
                try
                {
                    dcDesign.ReportSource = text;
                    dcDesign.Refresh();
                    SetTextToScintilla(text);
                }
                catch (Exception e)
                {
                    MessageBox.Show(e.Message, Strings.RdlEditPreview_Show_Report);
                    SetTextToScintilla(text);
                    tcEHP.SelectedIndex = (int)DesignTabs.Edit;	// Force current tab to edit syntax
                    _DesignChanged = DesignTabs.Edit;
                }
            }
            else
            {
                SetTextToScintilla(text);
            }
        }