在 Silverlight 3 中显示 Ms Word 2003 .doc
我目前正在 Silverlight 中编写一个应用程序,该应用程序需要一个控件来显示 Word 2003 文档。我还可以在 Web 服务发送文档之前对其进行转换,但 2003 格式似乎很难操作。我知道有一些软件可以做到这一点,但你必须购买它们。你有什么线索可以帮助我进步吗?
I'm currently programming an application in Silverlight which need to have a control to display a Word 2003 document . I can also convert the document before the webservice sends it but the 2003 format seems to be quite harsh to manipulate. I know there's some softwares which can do it but you have to purchase them. Do you have any clue to help me to progress ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要达到什么保真度级别?
我非常确定,“最简单”的方法是将文档转换为 XPS 服务器端(可能使用 XPS 打印机),然后对其进行操作以创建 Silverlight 兼容内容(XAP)
为什么会这样?因为,例如:
一年前,我让一名实习生为 Silverlight 设计了 XPS 阅读器的原型。它有效,但渲染并不完美(不过,我本来可以做更多的工作)
总而言之:这是可能的,并不复杂,但需要在一些领域(从 XSLT 到程序集生成,以及 XPS 规范的知识)。但我不知道有任何可用的免费解决方案。
因此,我建议使用可用(且有效)的解决方案,而不是采取冒险的开发路线。
What is the level of fidelity you want to achieve?
I am quite sure that the "easiest" way of doing this would be to convert the document to XPS serverside (with the XPS printer perhaps) then manipulating it to create a Silverlight compatible content (a XAP)
Why this? Because, for instance:
I had an intern design a prototype of XPS reader for Silverlight a year ago. It worked, but the rendering wasn't perfect (I could have been however, with more work)
In a word: It's possible, not really complicated, but requires lot of work and practice in a few domains (from XSLT to assembly generation, and knowledge of the XPS norms). But I am not aware of any free solutions available.
Therefore, I would recommand using an available (and working) solution, rather than taking the route of a risky development.