kailash r

kailash r

  • NA
  • 44
  • 0

How to remove Main Report button in crystal report viewer?

Jan 5 2010 8:39 AM

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)