Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
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 November 14th, 2006, 05:39 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add new tab in Crystal Report

Hi,

I am seeking assistance to resolve my issue. I am using Crystal Report 9.0. I have a drill-down report which is grouped based on some columns.

In our architecture,

VB - Middle Tier - Using dll
SQL Server - Back end - Using SQL procs.

It's purely a Web application. So, I am using ActiveX Viewer to show the report in front-end.

Once the report is displayed in a viewer, we have to click on any group then it will open a detail report in a new tab.

But, I want to display all the group details in a separate tabs programmatically.

I used the following code to achieve this in ASP page.

1 Dim vPath()
2 Dim vString
3 Dim x
4 Dim y
5 Dim counter

6 x = Lbound(CRViewer.GetViewPath(CRViewer.ActiveViewInd ex))
7 y = Ubound(CRViewer.GetViewPath(CRViewer.ActiveViewInd ex))

8 ReDim vPath(y)

9 vPath = CRViewer.GetViewPath(CRViewer.ActiveViewIndex)

10 For counter = x To y
11 If vPath(counter) <> "" then
12 If vString <> "" Then
13 vString = vString & ":"
14 End If
15 vString = vString & vPath(counter)
16 End If
17 Next counter

18 CRViewer.AddView(vString)
19 CRViewer.ActivateView(1) ‘ 1 - Main tab
20 CRViewer.ActivateView(2) ‘ 2 – New detail tab for a group

Is there anything I need to change or I missed anything here?

Your assistance in resolving my problem would be greatly appreciated.

Regards,
Prasanna





Similar Threads
Thread Thread Starter Forum Replies Last Post
<ask> How to add value to crystal report? qiux Crystal Reports 0 June 23rd, 2008 12:49 AM
Row Header For Cross Tab Report In Crystal Reports padma_eedara ASP.NET 1.0 and 1.1 Basics 1 October 18th, 2006 04:35 AM
Crystal Report Add in for Microsoft Excel tiyyob Pro VB 6 0 January 22nd, 2006 11:08 PM
How to add hyperlink in crystal report when openin Diamond_in_the_sky Crystal Reports 0 March 24th, 2004 01:25 PM
cross tab report in Crystal reports haahoou Crystal Reports 1 January 19th, 2004 05:28 AM





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