The font size is not setting. The font class is but the size stays the same.
This is my code:
.createObject(nObjTable,"oTop")
obj = .getObjectByName("oTop")
IF !ISNULL(obj)
WITH obj
.Attribute("Rows") = 1
.Attribute("Columns") = 1
.Attribute("left") = lnLeft
.Attribute("top") = lnTop
.Attribute("right") = lnLeft + nThumbW
.Attribute("bottom") = lnTop + nVBreak
ENDWITH
ENDIF
.ObjectAttributeSTR("oTop.Cells[1,1]", "TextGap", 2)
.ObjectAttributeSTR("oTop.Cells[1,1]", "DataType", 1)
.ObjectAttributeSTR("oTop.Cells[1,1]", "BackColor", "C0C0C0")
.ObjectAttributeSTR("oTop.Cells[1,1]", "Font", "Arial Narrow,8,0,0,0") &&Text Font not working
.ObjectAttributeSTR("oTop.Cells[1,1]", "Text", lcTextTop)
.RedrawObject("oTop.Cells[1,1]") &&back color not working
cell font not working
Hello,
No, it is not an issue about embedding the fonts or not, Arial is available on all systems and it doesn't need to be embedded unless you are trying to view the file on a system that doesn't have Arial.
You are setting the backColor to Gray yourself and this worked in my sample.
I notice that you are using: ObjectAttributeSTR
The function name should be ObjectAttributeStr instead.
Hope this helps.
No, it is not an issue about embedding the fonts or not, Arial is available on all systems and it doesn't need to be embedded unless you are trying to view the file on a system that doesn't have Arial.
You are setting the backColor to Gray yourself and this worked in my sample.
I notice that you are using: ObjectAttributeSTR
The function name should be ObjectAttributeStr instead.
Hope this helps.
font size still not working
Ok, I managed the back color to work. It's weird, I only had to put the color instruction after the text instruction and it worked.
The font is kind of working, the font type works, it changes to symbol for example but the font size is not working.
.ObjectAttributeSTR("oTable.Cells[1,1]", "Font", "Symbol,8,700,0,0")
However the title font works fine. I just don't understand why.
.ObjectAttributeSTR("oTable.Cells[1,1]", "TitleFont", "Arial Narrow,8,0,0,0") &&Text Font not working
I need the text font to work because the title doesn't have some attributes that I need.
Thanks for everything by the way.
The font is kind of working, the font type works, it changes to symbol for example but the font size is not working.
.ObjectAttributeSTR("oTable.Cells[1,1]", "Font", "Symbol,8,700,0,0")
However the title font works fine. I just don't understand why.
.ObjectAttributeSTR("oTable.Cells[1,1]", "TitleFont", "Arial Narrow,8,0,0,0") &&Text Font not working
I need the text font to work because the title doesn't have some attributes that I need.
Thanks for everything by the way.