如何在MS Word中插入HTML文本? [英] How to Insert HTML text into a MS Word?

查看:77
本文介绍了如何在MS Word中插入HTML文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我在将html格式的代码插入word时遇到问题.有人可以建议我如何将html格式的代码添加到MS Word吗?

我使用了范围对象,并尝试了许多方法,但均失败了.请告诉我一些可行的解决方案.

在此先感谢

问候,
Srinivas

Hi friends,

I''m getting problem on inserting html formatted code into word. Can any one suggest me how to add html formatted code to the MS Word?

I used range object, and tried somany approches and failed. Please tell me some working solution.

Thanks in Advance

Regards,
Srinivas

推荐答案

可能与前两个问题或多或少是同一件事的答案相同.
Probably the same as the answer to your previous two questions asking more or less the same thing.


我知道CodeProject的不错替代品.它们比使用单词要好得多.

对于System.Windows.Forms:
您将使用的专业HTML渲染器 [ WPF HTML支持的TextBlock [
I know good alternatives from CodeProject. They are much better than using word.

For System.Windows.Forms:
A Professional HTML Renderer You Will Use[^]

For, WPF:
WPF Html supported TextBlock[^]

Yes, I understand this is not exactly what are you looking for, but chances are, you will prefer using one of these alternatives, because they are better than using Word. Word programming is based on a lot of proprietary stuff and will never give fully predictable results.

—SA


这篇关于如何在MS Word中插入HTML文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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