Print Page | Close Window

[SOLVED] Row height

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=18099
Printed Date: 15 November 2024 at 9:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Row height
Posted By: mlg
Subject: [SOLVED] Row height
Date Posted: 22 March 2011 at 5:57am
Hi!

I can change the row height?

I known to can  FixedRow but I can't change the row height.


Thanks!!




Replies:
Posted By: jpbro
Date Posted: 22 March 2011 at 10:23am
You can use the xtpCustomMeasureRow flag with the SetCustomDraw method, and then change the row height based on dynamic requirements in the MeasureRow event.

Something like:


Option Explicit

Private Sub Form_Load()
   Dim i As Long
  
   With Me.ReportControl1
      .SetCustomDraw xtpCustomMeasureRow
     
      .Columns.Add .Columns.Count, "Test", 100, True
     
      For i = 0 To 99
         With .Records.Add
            .AddItem i
         End With
      Next i
     
      .Populate
   End With
End Sub

Private Sub ReportControl1_MeasureRow(ByVal Row As XtremeReportControl.IReportRow, ByVal hDC As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
   If Row.Index Mod 2 = 0 Then
      Height = 75 ' Pixels
   End If
End Sub



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: ABuenger
Date Posted: 23 March 2011 at 8:23am
@mlg: Did his answer helped you?



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


Posted By: mlg
Date Posted: 13 May 2011 at 3:29am
ok! thanks



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