如题:
在Delphi7中注册了 dsoframer.ocx控件后,直接将它拖至窗体中,运行不起来,包错:EVariantBadVarTypeError with message 'Invalid variant type'
请大家帮忙,不胜感谢
这是在网上找到的同类问题,我现在也遇到了,不知道是怎么解决的,很着急。
在Delphi7中注册了 dsoframer.ocx控件后,直接将它拖至窗体中,运行不起来,包错:EVariantBadVarTypeError with message 'Invalid variant type'
请大家帮忙,不胜感谢
这是在网上找到的同类问题,我现在也遇到了,不知道是怎么解决的,很着急。
regsvr32 dsoframer.ocx
这样吗?
这样貌似不行,我试好多次了。
var
WordApp: variant;
begin
WordApp := CreateOLEObject('Word.Application');
WordApp.Documents.Open('...');
// ...
// WordApp的属性和方法参考VBA的API说明
WordApp := Unassigned;
end;