Print Page | Close Window

can't see any button in CrystalReportsViewer

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4912
Printed Date: 27 Apr 2024 at 3:50am


Topic: can't see any button in CrystalReportsViewer
Posted By: danisupr4
Subject: can't see any button in CrystalReportsViewer
Date Posted: 02 Dec 2008 at 8:38am
hello.. i'm using Crystal Reports 10 OEM with Visual Studio 2005

i can't see any button (PrintButton, CloseButton, ExportButton, etc) in my CrystalReportViewer when I added it to multiple TabPage (TabControl component in .NET).

These are my action/procedure when doing that:
  • add TabControl component to the Form, then create 4 TabPage
  • add CrystalReportViewer to each TabPage
  • add the following code to the Form

    Dim cr1 As New ReportDocument
    cr1.Load(Application.StartupPath & "\Report1.rpt")
    cr1.SetDataSource(xsd1)
    crv1.ReportSource = cr1

    Dim cr2 As New ReportDocument
    cr2.Load(Application.StartupPath & "\Report2.rpt")
    cr2.SetDataSource(xsd1)
    crv2.ReportSource = cr2
    .....
    .....

    crv1 is CrystalReportsViewer for TabPage1, and then I did the same thing with TabPage2, TabPage3, TabPage4 so that I have crv2, crv3, crv4 called the same function, and xsd1 is my DataSet (XSD file) for the data source
  • I have written the following code before:
    Imports CrystalDecisions.CrystalReports.Engine

I can only see exactly one TabPage showing Crystal Reports standard button for printing, exporting, closing, etc. In my case (for 4 TabPage), the other 3 TabPage shows no button at all.., but every CrystalReportViewer shows the correct content and doesn't have any error.

Does anyone ever have this problem?



Print Page | Close Window