Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2007, 12:34 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default Main Report tab

Does anyone have a quick solution for disabling the "Main Report" tab?

 
Old January 3rd, 2008, 09:44 AM
Authorized User
 
Join Date: Dec 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pannasn
Default

Hi,
try the following :


Private Sub FormatReportViewer()
Dim thisObj As Object
Dim MyPageView As CrystalDecisions.Windows.Forms.PageView
Dim tcontrol As Windows.Forms.TabControl

For Each thisObj In CrystalReportViewer1.Controls

Select Case UCase(thisObj.GetType.Name)
'Case "STATUSBAR"
' CType(thisObj, StatusBar).Visible = False
Case "PAGEVIEW"
MyPageView = CType(thisObj, CrystalDecisions.Windows.Forms.PageView)
tcontrol = CType(MyPageView.Controls(0), TabControl)
With tcontrol

If .TabPages.Count > 0 Then

With .TabPages(0)

.Text = "Your Heading"
.Visible = True
End With
End If
End With
End Select
Next

End Sub

Hope it will help you.

Regards
Panna
Digital Horizons
India





Similar Threads
Thread Thread Starter Forum Replies Last Post
reset links main-report to sub-report from c#.net epanyun Crystal Reports 0 April 18th, 2008 02:41 AM
How to add new tab in Crystal Report prasanna.arr Crystal Reports 0 November 14th, 2006 05:39 AM
Passing parameters from main report to subreport Swati_Jain Crystal Reports 0 May 24th, 2006 09:04 AM
Cross tab report help kondapally Crystal Reports 0 March 15th, 2006 11:51 AM
supress pageheader of main report in subreport padma_eedara Crystal Reports 0 January 27th, 2006 09:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.