Problem using Crystal Reports in a tab control

I am displaying Crystal Reports in a tabl control.  A doc file with a screen print is attached.  When Any report is displayed, the box just above the report that says "Main Report" appears.  No one here can figure out how to get rid of it.  It is under the Crystal Reports toolbar and the Tab that says "Ranking System".  The attachment shows one report.  There are actually 7 reports to be displayed and they all do the same thing.
public void ShowReport(ReportInfo reportInfo, bool newTab)
            CrystalReportViewer viewer;
            if (newTab || (this.tabControl1.TabCount == 0))
                viewer = GetNewViewer();    
                viewer = GetCurrentViewer();
                ReportClass oldReport = GetCurrentReport();
                if (oldReport != null) {
            if (viewer == null) { EndWorking(); return; } //error.
            if (viewer.Parent is TabPage) {
                ((TabPage)viewer.Parent).Text = reportInfo.DisplayName;
            this.Text = "What's New - " + reportInfo.DisplayName;
            Type reportType = Assembly.GetExecutingAssembly().GetType(reportInfo.ReportName);
            ReportClass report = (ReportClass)Activator.CreateInstance(reportType);
            viewer.ReportSource = report;
 private CrystalReportViewer GetCurrentViewer()
            CrystalReportViewer result = null;
            try {
                foreach (Control control in this.tabControl1.SelectedTab.Controls) {
                    if (control is CrystalReportViewer) {
                        result = (CrystalReportViewer)control;
            } catch {
                return null;
            return result;
        private CrystalReportViewer GetNewViewer()
            TabPage page = GetNextTab();
            CrystalReportViewer viewer = new CrystalReportViewer();
            viewer.Dock = DockStyle.Fill;
            viewer.DisplayGroupTree = false;
            viewer.DisplayStatusBar = false;
            viewer.EnableDrillDown = false;
            return viewer;

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Look into this blog.
There is a solution You needed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sschuman220Author Commented:
Thank you, Thank you!!! It worked great.  I wish all my coding problems were this easy to solve.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.