使用c#操作Word文档

发布于 2024-08-24 20:01:45 字数 168 浏览 4 评论 0 原文

我正在尝试执行下一步操作:

我有一个Word文档,其中包含版权语言:英语,葡萄牙语,法语,...最初全部隐藏(文本)

并且在文档的顶部我有复选框, 1 对于每种语言,目标是当我选择它们时,我选择的语言文本会出现(通过处理程序或其他东西)

可以这样做吗?

谢谢

I'm trying to do the next:

I have a word document, than contains the languages of a copyrights: English, Portuguese, French, ... initialy all hidden(the text)

And in the top of the document i have Checkboxs, 1 for each language, than the objective is when i choose of them the text of the language than i selected apppears (by an handler or something)

It's is possible to do that?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁对谁错谁最难过 2024-08-31 20:01:45

好的,我相信单选按钮是最好的选择,因为只需要一个选择,但要使用它,我需要使用 Visual Basic 脚本来处理代码(隐藏和显示文本)

我认为我提出的问题不是商业问题问题,在开始开发代码之前,我需要确定是否是一个正确的想法,以及主要是否可能,例如,如果单词包含公共方法而不是隐藏选定的文本,例如在我的情况下。

因为我从来没有使用 Visual Basic 处理过 Word,所以我对对象等不熟悉。我很困惑:S

谢谢

Ok, i believe than radio buttons is the best choice because just one choice is needed, but to use it i need to use Visual Basic Script to handle the code (hide and show text)

I think the question i made isn't a business question, before start developing the code i need sure if is a correct idea, and primary if is possible or not for example if word contains a public method than hides a selected text for example in my case.

As i never work with word using visual basic i'm not familiar to objects, etc.. im confused :S

Thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文