6

Without going into why I need OLE.. I need to embed a managed C++ custom control into MS Word 2007 (2003 also would be nice).

So the question is How do I make this managed (.net 3.5) control OLE compliant ?

It seems that I need to do something akin to implementing an interface. But an up-to-date tutorial is something that is proving difficult to find.

I've read the wikipedia article on OLE. All the information that I could google out is ancient (1994) and/or VB centric (4.0-6.0). Anything that makes sense to current times... links/books please post.

Thanks for reading..

Community
  • 1
  • 1
Gishu
  • 134,492
  • 47
  • 225
  • 308

1 Answers1

0

Andrew Whitechapel writes about managed controls as ActiveX controls in Office documents. You can read his article here: http://blogs.msdn.com/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx.

Update: See also this related question.

Community
  • 1
  • 1
Dirk Vollmar
  • 172,527
  • 53
  • 255
  • 316
  • But he says 'it doesnt work that well with word.' Also 'dont try this in production code'. Both needed by me :) Thanks anyways – Gishu Nov 28 '08 at 10:43