用DELPHI调用CODESOFT模板打印时,Method 'DocObjects' not supported by automation

用DELPHI调用CODESOFT模板打印时,Method ɽocObjects' not supported by automation object在用

用DELPHI调用CODESOFT模板打印时,Method 'DocObjects' not supported by automation object
在用DELPHI调用CODESOFT模板打印时,不知道为什么我使用下面的语句的时候总是提示
Method 'DocObjects' not supported by automation object
Method 'Dialogs' not supported by automation object



BarApp := CreateOleObject('lppx.Application');

BarApp.ActiveDocument.DocObjects.Item('Text1');.value:= 'NEWVALUE';
BarApp.Dialogs.Item(1).Show;


另外想问一下,如何调整模板中TEXT的位置以及字体等属性,还望高手指点。
[解决办法]
似乎在你的接口定义上出了问题?版本问题?是否缺少引用?
[解决办法]
http://www.label-soft.cn/Soft/Drivers/200808/154.html

你下载这个demo看看。