Column Font..! |
Post Reply |
Author | |
RedPsyrus
Groupie Joined: 17 November 2008 Status: Offline Points: 38 |
Post Options
Thanks(0)
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
RedPsyrus
Groupie Joined: 17 November 2008 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
Hi,,
Thanks Aaron |
|
I'm using visual studio 2008 pro and codejock 12.1.1
|
|
Mike Lewis
Groupie Joined: 29 April 2009 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |