backcolor not working

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
alasmana
Posts: 7
Joined: Mon Dec 26 2005

backcolor not working

Post by alasmana »

The back color attribute is not working.

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
alasmana
Posts: 7
Joined: Mon Dec 26 2005

managed to work

Post by alasmana »

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
Post Reply