Print Page | Close Window

Report control group number

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1946
Printed Date: 07 November 2025 at 3:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report control group number
Posted By: unicef
Subject: Report control group number
Date Posted: 10 March 2005 at 11:49am
Is there any way to limit the number of groups? For example, 3 levels are good enough.



Replies:
Posted By: sserge
Date Posted: 10 March 2005 at 4:10pm
Hello unicef,

You can not limit the number of groups directly by one command. However, you can override Populate method of your Report control, check for added groups there and remove redundant ones if necessary. It could looks like the following:

class CYourReportCtrl : public CXTPReportControl
{
     ...
           virtual void Populate();
     ...
}

CYourReportCtrl::Populate()
{
     while (m_pColumns->GetGroupsOrder()->GetCount() > 3)
     {
           m_pColumns->GetGroupsOrder()->RemoveAt(3);
     }

     CXTPReportControl::Populate();
}


--
Best regards,
Sergey


Posted By: unicef
Date Posted: 11 March 2005 at 2:48pm
Hi Sergey,

Thanks your quick response.

Actually I used CXTPReportView which has print feature. CXTPReportView just has a member m_wndReport. Unfortunately it's not a pointer. So I cannot create a derived class.

Thanks,
unicef



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net