Andy Lawrence
12-17-2003, 08:23 AM
I'm using vb6 and the standard Data report designer.
I can't seem to change the fonts programmatically. Either I'm missing something or there are some constraints that I don't know about!
when I use the following code:
dr.Sections("pageHeader").Controls("phlbl1").Font.Size = 8
dr.Sections("pageHeader").Controls("phlbl2").Font.Size = 12
dr.Sections("reportheader").Controls("rhlbl1").Font.Size = 14
(dr is the name of the data report)
and step through it, it seems to set all fonts to the value of the last entry. So in this case if I look do the following in the immediate (straight after executing the last statement)
?dr.Sections("pageHeader").Controls("phlbl1").Font.Size
it displays 14
it does the same if I display dr.Sections("pageHeader").Controls("phlbl2").Font.Size
am I missing something?
N.B The real code was a lot longer but the above demonstrates the problem...
I can't seem to change the fonts programmatically. Either I'm missing something or there are some constraints that I don't know about!
when I use the following code:
dr.Sections("pageHeader").Controls("phlbl1").Font.Size = 8
dr.Sections("pageHeader").Controls("phlbl2").Font.Size = 12
dr.Sections("reportheader").Controls("rhlbl1").Font.Size = 14
(dr is the name of the data report)
and step through it, it seems to set all fonts to the value of the last entry. So in this case if I look do the following in the immediate (straight after executing the last statement)
?dr.Sections("pageHeader").Controls("phlbl1").Font.Size
it displays 14
it does the same if I display dr.Sections("pageHeader").Controls("phlbl2").Font.Size
am I missing something?
N.B The real code was a lot longer but the above demonstrates the problem...