8
Reply

How to remove Main Report button in crystal report viewer?

kailash r

kailash r

Jan 5 2010 8:39 AM
19k

How to remove this tab in crystal report viewer?


I have tried this. But not working.

 public void HideTabs(CrystalReportViewer viewer)
        {
            foreach (Control control in viewer.Controls)
            {
                if (control is PageView)
                {
                    TabControl tab = (TabControl)((PageView)control).Controls[0];
                    tab.ItemSize = new Size(0, 1);
                    tab.SizeMode = TabSizeMode.Fixed;
                    tab.Appearance = TabAppearance.Buttons;
                   
                }
            }
        }

Controls array not having any control.

Answers (8)
Next Recommended Forum