I try to set the text object Horizontal Alignment property to Right Alignment (Default Left Alignment) in C#.
But it seem don't work.
The property set back to Default
I'm using PDF Creator Pro v1.5 Beta
Code: Select all
....some stuff goes here...
CreatePdfTemplate.CreateObject(ACPDFCREACTIVEX.ObjectTypeConstants.acObjectTypeText, "acNo1");
CreatePdfTemplate.set_ObjectAttribute("acNo1", "Left", 850.39);
CreatePdfTemplate.set_ObjectAttribute(acNo", "Top", "5000")
CreatePdfTemplate.set_ObjectAttribute("acNo1", "Right", "1303");
CreatePdfTemplate.set_ObjectAttribute("acNo1", "Bottom", "5700")
CreatePdfTemplate.set_ObjectAttribute("acNo1", "Text", "Test");
CreatePdfTemplate.set_ObjectAttribute("acNo1", "HorzAlign", "Right");
CreatePdfTemplate.set_ObjectAttribute("acNo1", "TextFont", "Times New Roman,11.00,400,0,0,0");
...some stuff goes here ...
Many Thx and appreciate,
Cheers,
LOOI