![]() |
Report control group number |
Post Reply
|
| Author | |
unicef
Newbie
Joined: 17 February 2005 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: Report control group numberPosted: 10 March 2005 at 11:49am |
|
Is there any way to limit the number of groups? For example, 3 levels are good enough.
|
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
unicef
Newbie
Joined: 17 February 2005 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() 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 |