我如何嵌入在MS Word自定义用户控制? [英] How do I embed a custom user-control in MS Word?

查看:158
本文介绍了我如何嵌入在MS Word自定义用户控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:环境是.NET 3.0 + WPF的土地上,DB抽象以及出到距离和解决方案将需要为Office 2000的工作,起来,我想..

Context: The environment is .Net 3.0 + WPF land, the DB is abstracted well out into the distance and the solution would need to work for Office 2000 and up I guess..

需要的是得到一个定制的报告,用户希望有一定的应用程序窗口/箱(例如趋势图)在Word中显示。该窗口可以显示为静态图像,用户可以双击编辑它(这将造就一个嵌入式US preadsheet编辑..类似行为),并确定了以更新的对象。键入环绕箱一些文本,并保存或打印。

The need is to get a customized report for which the user would like to have certain application windows/boxes (e.g. a trend graph) displayed in Word. The window can be shown as a static image, the user can double-click and edit it (that would bring up an editor.. similar to behavior for an embedded spreadsheet) and OK out to update the object. Type some text around the box and save it or print it.

还要考虑到,我会需要一些机制,数据和那种数据绑定通过这些应用程序特定的盒子给它。例如图形可具有绑定到数据的特定时间范围,它需要

Also take into account, that I would need some mechanism to pass in data and kind of "data-bind" these app-specific boxes to it. e.g. the graph may have to bind to a specific time-range of data that it needs.

现在作为一个相对初级到Word的自动化,什么是高科技/分的高科技,我需要用这个名字?同时发布到书/职位,帮助您理解和任何建议得到尽快的运行速度。(因为业务始终相信程序员有足够的智慧来弄明白..我们可以给他们完全信任..但没有时间。)

Now as a relative beginner to Word automation, what is the name of the tech / sub-tech that I would need to use for this? Also post any recommendations to books/posts that help you understand and get to running speed ASAP.. (since the business always believes the programmers are smart enough to figure it out.. we can give them complete trust.. but no time.)

推荐答案

我想你将不得不考虑编写的 OLE 嵌入式/兼容的应用程序。这听起来像这可能是一个非常大的和复杂的任务。

I think you are going to have to look into writing an OLE embeddable/compatible application. It sounds like this may be a very large and complex task.

是否有任何理由,Excel不能做,你嵌入的图形?

Is there any reason that Excel cannot do the graph that you are embedding?

这篇关于我如何嵌入在MS Word自定义用户控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆