Print Page | Close Window

Bug : Multi-Line height & Merge Cells

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=19094
Printed Date: 06 July 2024 at 5:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug : Multi-Line height & Merge Cells
Posted By: chc_gpi
Subject: Bug : Multi-Line height & Merge Cells
Date Posted: 20 October 2011 at 5:49am
Hi again Smile

Always working with Merged cells, i found something i would call a BUG !

* All columns are "AlignmentWordBreak", i merged columns 1 & 2 and i have this.
So far, no problems.




* Let's now resize column 1 "Subject" and look to the third line !

CodeJock calculate the height of the line without add column 1 "Subject" and column 2 "Received" widths




* See here : the height of the third line is the same if no cells are merged :





I think this is a BUG, can anyone confirm ?


I use CodeJock Xtreme SuitePro (ActiveX) 15.1.3 - Report Control.

Thanks.


My code :

Option Explicit
Private Sub Form_Load()
   
    Dim ligne  As Integer
    Dim Record As ReportRecord
    Dim Column As ReportColumn
   
    Set Column = wndReportControl.Columns.Add(0, "From", 40, True)
    Set Column = wndReportControl.Columns.Add(1, "Subject", 90, True)
    Set Column = wndReportControl.Columns.Add(2, "Received", 40, True)
   
    wndReportControl.PaintManager.HorizontalGridStyle = xtpGridSolid
    wndReportControl.PaintManager.VerticalGridStyle = xtpGridSolid
    wndReportControl.PaintManager.GridLineColor = &H80000012
 
    wndReportControl.PaintManager.AllowMergeCells = True
    wndReportControl.PaintManager.FixedRowHeight = False
    wndReportControl.Columns(0).Alignment = xtpAlignmentWordBreak
    wndReportControl.Columns(1).Alignment = xtpAlignmentWordBreak
    wndReportControl.Columns(2).Alignment = xtpAlignmentWordBreak
   
    Set Record = wndReportControl.Records.Add()
    Record.AddItem "postmaster@mail.codejock.com"
    Record.AddItem "Undeliverable Mail"
    Record.AddItem ""
    wndReportControl.Records.MergeItems ligne, ligne, 1, 2
   
    ligne = ligne + 1
    Set Record = wndReportControl.Records.Add()
    Record.AddItem "postmaster@mail.codejock.com"
    Record.AddItem "Undeliverable Mail 2"
    Record.AddItem ""
    wndReportControl.Records.MergeItems ligne, ligne, 1, 2
   
    ligne = ligne + 1
    Set Record = wndReportControl.Records.Add()
    Record.AddItem "Codejock Exchange (https://forum.codejock.com)"
    Record.AddItem "Good Answer! Capture message send from Net Send 1 - Capture message send from Net Send 2! Good Answer"
    Record.AddItem ""
    wndReportControl.Records.MergeItems ligne, ligne, 1, 2
   
    ligne = ligne + 1
    Set Record = wndReportControl.Records.Add()
    Record.AddItem "Codejock Exchange (https://forum.codejock.com)"
    Record.AddItem "Comment Added: returning a <ma> from a dll"
    Record.AddItem ""
    wndReportControl.Records.MergeItems ligne, ligne, 1, 2
   
    wndReportControl.Populate

    wndReportControl.Redraw
       
End Sub






Replies:
Posted By: Aaron
Date Posted: 07 November 2011 at 2:22am
Hi,
 
I don't use MergeCell option but I can confirm that it doesn't work properly. RowHeight isn't calculated right way.
 
Andre?
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: ABuenger
Date Posted: 08 November 2011 at 11:46pm
Hi,

you are right, the row height does not consider merged cells. This requires some changes to the control, so I probably have to postpone the fix after 15.2.1 and then include the fix in 15.2.2.

Andre



-------------
Codejock support


Posted By: Michael S.
Date Posted: 18 April 2013 at 6:45am

Unfortunately this bug still exists in version 15.3.1.

Is it fixed in the new upcoming 16.x version? If not, when can we expect a fix?



-------------
Product: Xtreme SuitePro (ActiveX) version 15.1.3
Platform: Windows 7 Prof. SP 1 x64
Language: Visual Basic 6.0


Posted By: eam74
Date Posted: 31 July 2014 at 11:47am
The forums seem dead at this point, but, same problem in 16.1.0.  Merged cells are (still) not taken into account when calculating row height.  I am currently attempting to implement my own workaround because I have very specific cases of merged cells - for those interested the function to override appears to be CXTPReportPaintManager::GetRowHeight.


-------------
Xtreme ToolkitPro (C++) v16.1.0, Windows 7


Posted By: kstowell
Date Posted: 05 August 2014 at 2:35pm
We are working on adding this functionality now and should have it implemented by the next release.

-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net