Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Merging and invisible columns
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed[SOLVED] Merging and invisible columns

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Direct Link To This Post Topic: [SOLVED] Merging and invisible columns
    Posted: 30 November 2011 at 6:19pm
Hi;

Consider a report control with a few columns

|  A  |  B  |  C  |  D  |  E  |  F  |

Now hide every third column (C and F) by calling CXTPReportColumn::SetVisible(FALSE)
and then merge all columns of each row:

for (i=0; i<NumRows; i++)
  GetRecords()->MergeItems(CXTPReportRecordItemRange(0, 5, row, row));

At last call Populate().

The result is not what is expected! I see the data of the first column A in A and B and a second time in D and E.
This can be reproduced with the CJ report sample too.

I expect the remaining columns A, B, D, E to be merged to one big cell.
When showing the columns C and F again then the merging should comprehend all six columns.

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Direct Link To This Post Posted: 01 December 2011 at 10:49am
Hi,

this is the same problem as when you group by one of the columns. The algorithm that finds the current merged cell ranges doesn't cover these cases.

I close this thread as it is the same issue as in the other thread.

Andre

Codejock support
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.