|  | 
| ComMergeItems in ReportControl | 
| Post Reply   | 
| Author | |
| Andy121070   Groupie   Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |  Post Options  Thanks(0)  Quote  Reply  Topic: ComMergeItems in ReportControl Posted: 22 March 2017 at 1:53pm | 
| 
   We are trying to create a tree list in the report control which contains 3 columns.  For some rows, there may be child items which we want to display in as below.  We have tried using ComMergeItems to merge the child items but getting an access violation error. Any help on what the ComMergeItems parameters are expected to be; handles, column index, or something else? The tree is to look like... Column A	Column B	Column C  Item_A		Value_A		Price_A  Item_B		Value_B		Price_B +Item_C		Value_C		Price_C    Sub Item text for C1    Sub item text for C2  Item_D		Value_D		Price_D +Item_E		Value_E		Price_E    Sub Item text for E Note that the sub item text is spanning the columns.  I can get the data to show in all but the spanning of the sub items. Any assistance appreciated. | |
| 
     Regards Andy | |
|  | |
| olebed   Senior Member   Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 March 2017 at 5:39am | 
| 
   Hello Andy, You again start topic about ActiveX in MFC branch :-) you can find documentation abour MergeItems method in c:\Program Files (x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v17.3.0\Help\SymbolReference.chm MergeItems MethodDescriptionMerges 2 or more items in the report. SyntaxPublic Sub MergeItems( _
   ByVal RecordFrom As Long, _
   ByVal RecordTo As Long, _
   ByVal ColumnFrom As Long, _
   ByVal ColumnTo As Long _
) Parameters
 Remarks
 MergeItems allows cells in the report to be merged both 
vertically and horizontally.   
 Example of TreeView in ReportControl you can see in the same ReportSample - frmTreeView.frm Regards, | |
|  | |
| Andy121070   Groupie   Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 March 2017 at 7:44am | 
| 
   Thank you for the feedback.  Apologies for the wrong forum, again!!! We have tried to use the commands as you show in your example above, but our application blows up when we do the MergeItems call. What are the arguments relating to?  Objects, Columns, Pointers, etc? This may be a stupid question but whatever we use it goes bang. | |
| 
     Regards Andy | |
|  | |
| olebed   Senior Member   Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 March 2017 at 8:27am | 
| 
   arguments are indexes of rows and columns.  Public Sub MergeItems( ByVal RecordFrom As Long, ByVal RecordTo As Long, ByVal ColumnFrom As Long, ByVal ColumnTo As Long )
 | |
|  | |
| 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 |