Print Page | Close Window

How do I use Italic for a Record/Row Item?

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


Topic: How do I use Italic for a Record/Row Item?
Posted By: mstuart
Subject: How do I use Italic for a Record/Row Item?
Date Posted: 15 October 2010 at 12:59pm
Hi all,
I don't see the ReportRecordItem property for Italic. So how do I set the Italic Font for a record/row object?
I'd like to make the record/row appear Italic based on a SQL table field value.
The user may not select this SQL field to appear in the RC, so I have to read the field when loading the records from the table.

Any ideas about this?



-------------
Regards,
Mark Stuart

Product: Xtreme SuitePro (ActiveX) v13.2.1
Platform: WinXP (32bit)/Win7 (64bit)
Language: VB6 (SP6), Magic eDeveloper v9.4, uniPaaS v1.9



Replies:
Posted By: Aaron
Date Posted: 15 October 2010 at 2:49pm
Hi,
 
  • All items in RC:
 
Me.wndReportControl.PaintManager.TextFont.Italic = True
    
 
  • If only certain reportItems have to be Italic: use BeforeDrawRow event and use Metrics object
 
me.wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow  
Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
    If Item.Index = 0 Then
        Metrics.Font.Italic = True 'Italic all items in first column
    End If
End Sub
 
 


-------------
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