How to embed user control in MS Word?

Context. Environment - .Net 3.0 + WPF, the database is abstracted from a distance, and the solution should work in Office 2000 and guess.

It is necessary to create an individual report for which the user would like to have certain windows and application windows (for example, a trend graph) displayed in Word. The window can be displayed as a static image, the user can double-click and edit it (which will lead to the creation of an editor .. similar to the behavior for the embedded spreadsheet) and OK to update the object. Enter text around the window and save or print.

Also note that I will need some kind of mechanism for transferring data and the kind of "data binding" to these applications. for example, a graph may need to be bound to a specific time range of the data it needs.

Now, as a relative newbie to automate Word, what is the name of the technology / subtopic that I will need to use for this? Also publish any recommendations for books / messages that will help you understand and switch to speed as soon as possible (since the business always believes that programmers are smart enough to understand this). We can give them full confidence .. but no time.)

+2
ms-word automation
source share
2 answers

I think you'll have to think about creating a nested / compatible OLE application. It seems like this can be a very big and difficult task.

Is there any reason Excel cannot make the graph you embed?

+1
source share

I highly recommend making it dependent on Office 2007 and later. If you do, you can use the tape and do .Net programming through VSTO.

-one
source share

All Articles