|
textbox.setHeight not working |
Posted by Ryan on Mar-29-2014 23:39 |
|
Peter,
I have the latest version of CD for COM (5.1.1) and I am trying to increase the height of
the chart title textbox using the following code and it is not working:
set txtbox = c.addTitle(ReportName, "trebucbd.ttf", 16, &H030303)
call txtbox.setHeight(150)
any ideas?
Thanks
-=Ryan A |
Re: textbox.setHeight not working |
Posted by Peter Kwan on Apr-01-2014 01:42 |
|
Hi Ryan,
I have just tested myself. Your code works normally in my case. The height is increased to
150.
Would you mind to clarify how do you determine if the code is working or not? The height of
the textbox should be invisible unless you set a background color or border for the textbox.
For example, if you use the following code, you should be able to confirm that the height of
the textbox has been changed.
set txtbox = c.addTitle(ReportName, "trebucbd.ttf", 16, &H030303)
call txtbox.setHeight(150)
call txtbox.setBackground(&Hffff99)
Hope this can help.
Regards
Peter Kwan |
Re: textbox.setHeight not working |
Posted by Ryan on Apr-01-2014 02:34 |
|
Oh My! My Bad. Forgot I could move the chart down. I was thought changing the title
height would push the chart down to make room.
OK... Got it now. All is fine.
Thanks! |
|