Tips and Tricks
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005-2015 : Tips and Tricks
Message Icon Topic: Manipulating the structure of a group tree Post Reply Post New Topic
Author Message
mozersky
Newbie
Newbie
Avatar

Joined: 04 Jun 2008
Location: United States
Online Status: Offline
Posts: 2
Quote mozersky Replybullet Topic: Manipulating the structure of a group tree
    Posted: 04 Jun 2008 at 2:21pm
Hi,

I am using Crystal Reports XI (Release 2) in C#.Net for a Web page, which upon request, gets dynamic data from MSSQL Server 2000, applies the .rpt template and then exports the report to a PDF file.

Let's say that the following is the data i'm using:

Col1    Col2
value1   abc
value1   abc
value1   def
value1   def
value2   abc
value2   abc
value2   def
value2   def

It would be desireable for me to produce the following bookmark tree structure:

value1
 def
value2
 def

So, my goal is to exclude the first node of the sub-group ("abc"). I know that if I group the report by Column1 then Column2, and then use the new "Create Bookmarks From Group Tree" feature, the following bookmark tree structure would be generated:

value1
 abc
 def
value2
 abc
 def

I'm thinking if it is possible to maybe manipulate some "GroupTree" object(does it exist?) during run time or to create a formula in the .rpt template to remove the first sub-group node.

Thanks in advance for your input.

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 04 Jun 2008 at 8:06pm
Unfortunately, you can't access the group tree object (it's a nice idea though). It always mimics the exact grouping structure found in the report.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.109 seconds.