Print Page | Close Window

Column Font..!

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=14415
Printed Date: 04 July 2025 at 7:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Column Font..!
Posted By: RedPsyrus
Subject: Column Font..!
Date Posted: 29 May 2009 at 7:59pm
Hi,
is there a way to make a Differentfont in the each Column of rportcontrol..?
for example I have a reportcontrol with 3 Columns, the data in the Column 3 has a Different font that in the column 1 and tha in the column 2.

it's possible ?
thanks



-------------
I'm using visual studio 2008 pro and codejock 12.1.1



Replies:
Posted By: Aaron
Date Posted: 30 May 2009 at 4:47am
Hi,
 
It is possible with markup
 
Just to have same effect for column:
 
Dim xtremeColumn As XtremeReportControl.ReportColumn
    Set xtremeColumn = wndReportControl.Columns.Add(0, "Col 0", 100, True)
    Set xtremeColumn = wndReportControl.Columns.Add(1, "Col 1", 100, True)
          xtremeColumn.Caption = "<TextBlock FontFamily='Lucida Handwriting'>Column<Bold Foreground='Red'>" & "(" & xtremeColumn.Index & ")" & "</Bold></TextBlock>"
 
 
 
Add code in BeforeDrawRow event:
 
Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
    If Item.Index = 1 Then
        Metrics.Text = "<TextBlock FontFamily='Lucida Handwriting' FontSize='28'>" & Item.Caption & "</TextBlock>"
    End If
End Sub
 
 
and voila:
 
 
  


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


Posted By: RedPsyrus
Date Posted: 30 May 2009 at 7:02am
Hi,,
Thanks Aaron


-------------
I'm using visual studio 2008 pro and codejock 12.1.1


Posted By: Mike Lewis
Date Posted: 09 June 2009 at 12:47pm
Thanks from me too, Aaron. I was just wondering how to make the column header the same colour as the rest of the column. Your post gave me the answer.

Worth adding that we need to set the grid's EnableMarkup to true, which I don't think it is by default.

Mike


-------------
Mike Lewis
Software Developer
Edinburgh, Scotland



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