Print Page | Close Window

PrintPreview

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


Topic: PrintPreview
Posted By: JamGodz
Subject: PrintPreview
Date Posted: 24 May 2011 at 2:27am
Hi All

Does anyone know how to include RowNumber in PrintPreview.


Any help would be appreciated.

Thanks.



Replies:
Posted By: Aaron
Date 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....



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