Destaque Empreendimentos em Informática
Posts: 41
Joined: 2011-03-10
|
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 |
|
Andrei Smolin
Add-in Express team
Posts: 15583
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.
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|