Incompatible Types Word2000 and Word 2010 Documents

Add-in Express™ Support Service
That's what is more important than anything else

Incompatible Types Word2000 and Word 2010 Documents
 
Destaque Empreendimentos em Inform?tica


Guest


Hi for all,
I'm trying manipulate the active document (on Word) into an on-click method (for a ribbon button), but when I get the document from WordApp.ActiveDocument, it is of the type Word2000.Document, but I put the Word2010 in the "uses" session. Then Delphi does not compile with this error message: [dcc32 Error] McOffice6_IMPL.pas(613): E2010 Incompatible types: 'Word2010._Document' and 'Word2000._Document'

Can someone help me?

Regards,
Sergio
Posted 27 Nov, 2014 07:54:21 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello Sergio,

You get this issue because Add-in Express is built on MS Office 2000 Sample Automation Server Wrapper Components. Please find an example of using a different type library at http://www.add-in-express.com/forum/read.php?FID=1&TID=12731.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Nov, 2014 09:42:44 Top