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.