Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How do I use Italic for a Record/Row Item?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

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


Joined: 06 April 2010
Location: United States
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote mstuart Quote  Post ReplyReply Direct Link To This Post Topic: How do I use Italic for a Record/Row Item?
    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
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: 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....
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.156 seconds.