Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - PrintPreview
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PrintPreview

 Post Reply Post Reply
Author
Message
JamGodz View Drop Down
Groupie
Groupie
Avatar

Joined: 25 February 2010
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamGodz Quote  Post ReplyReply Direct Link To This Post Topic: PrintPreview
    Posted: 24 May 2011 at 2:27am
Hi All

Does anyone know how to include RowNumber in PrintPreview.


Any help would be appreciated.

Thanks.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2011 at 11:31am

Hi,

Seems it doesn't show rownumbers, guess you have to create your own column with row/record numbers. It's not that difficult, just add column and have BeforeDrawRow event to add numbers of rows/records

 
Private Sub ReportControl1_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
    If Not Row.groupRow Then
        If Item.Index = 0 Then
            Metrics.Text = Row.Index 'or Row.Record.Index in case you want to see the record numbers
        End If
    End If
End Sub
 
 
Done Wink and showing in printpreview
 
 
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....
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.172 seconds.