Print Page | Close Window

Item(x).Bold = True ignored

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=9437
Printed Date: 05 October 2024 at 1:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Item(x).Bold = True ignored
Posted By: s.neu
Subject: Item(x).Bold = True ignored
Date Posted: 29 January 2008 at 10:25am
Hi,

this is a bit strange: I'm looping over the ReportRecords (rrc) of
SelectedRows in ReportControl 9.80 doing:
    If ... Then
        rrc.Item(rptMailFrom).Icon = 151
        For c = rptMailTo To rptTargetEnd
            rrc.Item(c).Bold = False
        Next c
    Else
        rrc.Item(rptMailFrom).Icon = 153
        For c = rptMailTo To rptTargetEnd
            rrc.Item(c).Bold = True
        Next c
    End If

After Populate() Icons are set properly. It allows me also to
remove bold font, but I can't make the font bold. Although
the code is executed nothing happens!

Anyone stumbled on this?




Replies:
Posted By: wlcabral
Date Posted: 29 January 2008 at 3:36pm

if "rrc.Item(rptMailFrom).Icon = 151" is working  then
"rrc.Item(rptMailFrom).bold = true"   should be working too.

Could be a version problem, in 11.2.2 works.

Or;   is your "for" correct ?

' this sample (Ms FOXPRO) works fine ::::::::
for recs = 0 to xTremeReportControl.OBJECT.Records.Count-1

 oRecord = xTremeReportControl.OBJECT.Records.Record(recs)
 nColumns= xTremeReportControl.OBJECT.Columns.Count

 for cols = 0 to nColumns -1
   oRecord.Item(cols).bold = true
 next
next
xTremeReportControl.OBJECT.Populate()



-------------
wlcabral



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