Word文档文本格式 [英] Word document text formatting

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

问题描述

什么样的编程语言会更好/更容易编程



创意:作为用户登录后,上传文件(例如Word文档) - >程序更改Word文档中的文本格式(格式如字体,字体大小,文本颜色)。不同的用户可以定义不同的格式。并且应该有机会设置不同的格式标题和不同的普通文本(如MS Word中的样式)



我的第一个版本是,应该使用VisualBasic。现在听说可以使用HTML是真的吗?也许还有另外一个想法如何实现它?



我尝试过:



在VisualBasic中启动项目。可以上传文档,添加文本。

无法理解如何检查特定文本样式,如标题,普通tex或格式化表格

解决方案

< blockquote>您需要学习 Microsoft.Office.Interop.Word命名空间() [ ^ ]。

What kind of programming language would be better/ easily to program

Idea: As user after login, upload file (for example Word document) -> program change text formatting in Word document (formatting like font, font size, text colour). Different users this formatting could be different defined. And there should be opportunity to set different formating to heading and different to normal text (like Styles in MS Word)

My first version was, that should use VisualBasic. Now heared that could use HTML is it true? Maybe there is another idea how to realise it?

What I have tried:

Started project in VisualBasic. Can upload document, add text.
Can't understand how to check specific text style like Heading, normal tex, or table for formatting

You need to study the Microsoft.Office.Interop.Word namespace ()[^].


这篇关于Word文档文本格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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