![]()  | 
 
I've tried but I still don't know how to do this | 
 
    Post Reply  
   | 
  
| Author | |
   
   Bernie  
   
   Senior Member  
   Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: I've tried but I still don't know how to do thisPosted: 07 November 2007 at 6:21am  | 
 
   
    
Here it goes. 
It is a simple "table." 
Help me! 
    | 
 |
![]()  | 
 |
   
   gaudetm  
   
   Senior Member  
   Joined: 23 September 2006 Location: Canada Status: Offline Points: 134  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 November 2007 at 6:37am | 
 
| 
   
    
   mo cell merge options yet! Hope there will be one day!
 
   
  Marc 
    | 
 |
![]()  | 
 |
   
   sserge  
   
   Moderator Group  
   Joined: 01 December 2004 Status: Offline Points: 1297  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 November 2007 at 5:04pm | 
 
| 
   
    
   Well, I can't see a reason to create such a configuration with the Report control. Note that it actually has a concept of a "record" which is going to be shown somehow for a user. Where are records on this picture? As far as I can see, there are only "cells", what is actually closer to the Grid concept. 
   
  -- WBR, Serge  | 
 |
![]()  | 
 |
   
   Bernie  
   
   Senior Member  
   Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 November 2007 at 10:31pm | 
 
| 
   
    
   How about this "Report"?
 
   
  Is it meaningful? 
![]()  | 
 |
![]()  | 
 |
   
   KAshley  
   
   Newbie  
   Joined: 22 October 2007 Status: Offline Points: 2  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 November 2007 at 9:31am | 
 
| 
   
    
   
Hello Bernie, 
   
  THe report itself is meaningful. However, you are mixing data concepts and display concepts. As far as I can tell, the report control is oriented more towards something that looks and feels like a database table or a multi-column list view. The point of this being that each 'row' represents data associated with a single 'object'. This is a data centric format that encapsulates and groups data regarding a single entity. What you are doing seems more appropriate to a control that has either some sort of table-construction capabilities or looks and feels like microsoft excel (or some other spreadsheet).  | 
 |
![]()  | 
 |
   
   Bernie  
   
   Senior Member  
   Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 November 2007 at 10:05pm | 
 
| 
   
    I like ReportControl very much, and want to use it as possible as it can. There are various uses of ReportControl. Some of my programs are aim to demostrate or illustrate data and turn the data into information which may help decision-makers. The example shown in the last essay I wrote was one of them. 
If the database can not be shown in any "meaningful" way, why do we need the database? In my point of view, programmers are professonals who can turn the data into information. Database stores data, and ReportControl shows information. 
If "Cells Merge" can be put into realized, the ReportControl will be more valuable and are likely to "replace" Grid controls and Exel-like SpreadSheets. 
It's a great idea, isn't it? 
   ![]()  | 
 |
![]()  | 
 |
   
   Krog  
   
   Groupie  
   Joined: 06 February 2008 Status: Offline Points: 100  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 January 2010 at 10:52pm | 
 
| 
   
    
   I need to show 2 lines o columns, some of them having merging vertically. I would like to use the ReportControl but I will have to use another control I think.
 
   
  See this topic: http://forum.codejock.com/forum_posts.asp?TID=15751  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.2.1
 
   
  Platform: Windows XP SP2 Language: Visual Basic 6 SP6  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 22 January 2010 at 4:42pm | 
 
| 
   
    
   As Report draw itself by rows it is not difficult to Merge Cells in horizontal direction and give first of merged cell all following merged cells space but vertical case looks useless - if you want to use it as kind of block title - you can spit title text and put parts on different vertical levels. May be for such case we can eliminate to draw border between vertical cells - it still be fit in row-based draw aglorithm and finally you will have your desired layout
    
   
   | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 22 January 2010 at 10:12pm | 
 
| 
   
    I made some minimal implementation - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar 
there is some VB6 test sample project in rar and snapshot of result 
    | 
 |
![]()  | 
 |
   
   Krog  
   
   Groupie  
   Joined: 06 February 2008 Status: Offline Points: 100  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25 January 2010 at 10:58am | 
 
| 
   
    
   Hi.
 
   
  I think I misinterpreted myself. Sorry! The need is only for the column headers, like this:  
To avoid to have to write the "stock" word at each column, and make clear that the 3 columns are related to the "stock". Using this we can also use a smaller width for the columns. Note that there is so horizontal merge (on Stock) as vertical merge (on Product and Operation). Thanks anyway for your effort.  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.2.1
 
   
  Platform: Windows XP SP2 Language: Visual Basic 6 SP6  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25 January 2010 at 1:59pm | 
 
| 
   
    
   You can have such effect with proper header setup like column.HeaderAlignment = xtpAlignmentWordBreak
    
   
   | 
 |
![]()  | 
 |
   
   Krog  
   
   Groupie  
   Joined: 06 February 2008 Status: Offline Points: 100  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 January 2010 at 10:12am | 
 
| 
   
    
   But in this case I need a way to increase the column headers height. I didn't find a way to do it... It appears to be a default...
 
   
  Other thing: I could hide the column header and use header rows instead, fixed. I will try it. But the column resizing may not work in this way.  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.2.1
 
   
  Platform: Windows XP SP2 Language: Visual Basic 6 SP6  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 January 2010 at 10:17am | 
 
| 
   
    
   Just use column2.Caption = "Stock: Before"  column3.Caption = "Stock: Diff" column4.Caption = "Stock: After" and find proper witdh
    
   
   | 
 |
![]()  | 
 |
   
   Krog  
   
   Groupie  
   Joined: 06 February 2008 Status: Offline Points: 100  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 January 2010 at 5:23pm | 
 
| 
   
    
   Did you test it?
 
   
  The second line does not appear entirely because the header height is not sufficient for 2 lines of text:  
We can change the column header height?  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.2.1
 
   
  Platform: Windows XP SP2 Language: Visual Basic 6 SP6  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 January 2010 at 5:28pm | 
 
| 
   
    
   You need to set .PaintManager.FixedRowHeight = False
    
   
   | 
 |
![]()  | 
 |
   
   Krog  
   
   Groupie  
   Joined: 06 February 2008 Status: Offline Points: 100  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 28 January 2010 at 1:20pm | 
 
| 
   
    
   WOW! It worked!
 
   
  Thank you very much!  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.2.1
 
   
  Platform: Windows XP SP2 Language: Visual Basic 6 SP6  | 
 |
![]()  | 
 |
    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  |