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

[SOLVED] TopRowIndex always returns 0

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] TopRowIndex always returns 0
    Posted: 08 September 2011 at 4:37am
in the new release the TopRowIndex property always returns 0 no matter how many records are in the reportcontrol. here is a sample project for andre:
 
 
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2011 at 10:32pm
Hi,

TopRowIndex returns 0 if you have smooth scrolling enabled. I'll also set the row index for the next release.

Andre

Codejock support
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2011 at 4:50am
Andre, if ScrollMode = xtpReportScrollModeBlock the TopRowIndex also gets 0
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2011 at 9:51pm
Originally posted by McKloony McKloony wrote:

Andre, if ScrollMode = xtpReportScrollModeBlock the TopRowIndex also gets 0


Hi,

I've added a new HScroll and VScroll event and tested if the TopRowIndex is set correctly.

Private Sub wndReportControl_VScroll(ByVal Section As Long, ByVal Position As Long)
    Debug.Print wndReportControl.TopRowIndex
End Sub

The TopRowIndex is always set correctly, if ScrollMode = xtpReportScrollModeBlock. If you always get 0, you've enabled smooth scrolling.

Andre

Codejock support
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2011 at 3:27am
Yes, you are right. Anyhow on my project was smooth scrolling activated.
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
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.063 seconds.