Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Row height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed[SOLVED] Row height

 Post Reply Post Reply
Author
Message
mlg View Drop Down
Groupie
Groupie


Joined: 25 January 2011
Status: Offline
Points: 15
Direct Link To This Post Topic: [SOLVED] Row height
    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!!

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Direct Link To This Post 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

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Direct Link To This Post Posted: 23 March 2011 at 8:23am
@mlg: Did his answer helped you?

Codejock support
Back to Top
mlg View Drop Down
Groupie
Groupie


Joined: 25 January 2011
Status: Offline
Points: 15
Direct Link To This Post Posted: 13 May 2011 at 3:29am
ok! thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.