使用c#操作Word文档
我正在尝试执行下一步操作:
我有一个Word文档,其中包含版权语言:英语,葡萄牙语,法语,...最初全部隐藏(文本)
并且在文档的顶部我有复选框, 1 对于每种语言,目标是当我选择它们时,我选择的语言文本会出现(通过处理程序或其他东西)
可以这样做吗?
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用MS Office库来处理Word文档
http://www.c-sharpcorner.com/UploadFile/amrish_deep/ WordAutomation05102007223934PM/WordAutomation.aspx
http://msdn.microsoft.com/en-us/library/bb386200。 ASPX
You can use the MS office library to process word documents
http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223934PM/WordAutomation.aspx
http://msdn.microsoft.com/en-us/library/bb386200.aspx
好的,我相信单选按钮是最好的选择,因为只需要一个选择,但要使用它,我需要使用 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