C# Programming
08-25-2009, 01:40 AM
foreach (Control control in crystalReportViewer1.Controls)
{
if (control is CrystalDecisions.Windows.Forms.PageView)
{
TabControl tab = (TabControl)((CrystalDecisions.Windows.Forms.PageView)control).Controls[0];
tab.ItemSize = new Size(0, 1); //for delete
tab.TabPages[0].Text = "گزارش";// for rename
tab.SizeMode = TabSizeMode.Fixed;
tab.Appearance = TabAppearance.Buttons;
}
}
{
if (control is CrystalDecisions.Windows.Forms.PageView)
{
TabControl tab = (TabControl)((CrystalDecisions.Windows.Forms.PageView)control).Controls[0];
tab.ItemSize = new Size(0, 1); //for delete
tab.TabPages[0].Text = "گزارش";// for rename
tab.SizeMode = TabSizeMode.Fixed;
tab.Appearance = TabAppearance.Buttons;
}
}