Microsoft Office 2013的开发问题 [英] Issue with the development of Microsoft Office 2013

查看:59
本文介绍了Microsoft Office 2013的开发问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队正在开发Microsoft Word for Office 2013及更早版本的插件。



< p style ="text-align:justify"> 我们遇到过的问题尝试捕获插件的
文本框中文档文本中包含的格式时保存Word格式。当我们捕获文本时,它包含许多Microsoft Office用于格式化文本的隐藏元素。每当我们的插件捕获文本时,我们就无法获取所有隐藏元素,因为它们存储在
Microsoft Office的核心中,而对于外部开发人员来说是关闭的。


因此,当我们的插件文本框拾取文本时,我们无法保留文本所具有的初始格式(例如,如果它是短语
" 您好先生"
粗体斜体格式化消失,我们在插件的文本框中得到的结果是"Hello
to you sir"(即,我们能够看到文本,但我们丢失了粗体,斜体格式化。



你能否告诉我们是否有办法捕获所有的格式存储在核心中以便为整个ph设置相同的设置当我们在插件的文本框中查看文档中的文本
时,格式化格式?



非常感谢提前

解决方案

你好N Fonu,


什么是插件?它是VSTO加载项吗?


我认为office不提供任何属性/方法来获取文本字符串的所有格式。


文本框是什么?可以
Selection.PasteAndFormat
适用于您?


最好的问候,


Terry


Our team is working on a plug-on to Microsoft Word for Office 2013 and earlier.

We have faced problems of saving Word formatting when trying to capture the formatting contained in the text of a document within our plug-in's text box. When we capture the piece of text, it contains a lot of hidden elements which Microsoft Office uses for formatting the piece of text. Whenever our plug-in captures the text we cannot grab all that hidden elements as they are stored in the core of Microsoft Office which is closed for outside developers.

Thus, when the text is picked up by our plug-in's text box, we cannot preserve the initial formatting which the text had (e.g. if it was a phrase "Hello to you sir" the bold italicised formatting disappears and the result which we get in our plug-in's text box is "Hello to you sir" (i.e., we are able to see the text but we lose the bold, italics formatting).

Could you advise us if there is a way to capture all the formatting which is stored in the core in order to have the same settings for the whole phrase formatting when we are reviewing the text from the document in our plug-in's text box?

Many thanks in advance

解决方案

Hi N Fonu,

What is the plug-on? Is it an VSTO add-in?

I think office does not provide any property/method to get all format of a text string.

What’s the text box? Could Selection.PasteAndFormat work for you?

Best Regards,

Terry


这篇关于Microsoft Office 2013的开发问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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