[SOLVED] Merging and invisible columns
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19250
Printed Date: 28 September 2024 at 3:07pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: [SOLVED] Merging and invisible columns
Posted By: mgampi
Subject: [SOLVED] Merging and invisible columns
Date 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 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017
|
Replies:
Posted By: ABuenger
Date 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
|
|