使用 C# 在 Word 2003 中导入 HTML
我正在尝试将网页内容导出到Word中。 在 Word 2007 中,数据以正确的格式显示。 但对于word 2003,显示格式不正确。 这是什么原因呢? 我应该做什么来纠正这个问题?
我正在显示一个文本框和一些矩阵形式的复选框控件。 实际上在网页中这些控件是使用表格属性显示的。 在Word 2003中,表格属性反映在Word页面中。 但在 Word 2007 中,表属性被删除并提供了预期的答案。
I am trying to export the web page content into Word. In word 2007 the datas are displaying in correct format. But in case of word 2003 the display format is not correct. What is the reason for this? What should I have to do to rectify this?
I am displaying a textbox and some check box controls which is in the form of Matrix. Actually in the web page these controls are displayed using table property. In word 2003 the table property is reflecting in the word page. But in word 2007 the table property is removed and providing the expected answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
;
使用系统数据;
使用系统配置;
使用系统集合;
使用系统.Web;
使用 System.Web.Security;
使用 System.Web.UI;
使用 System.Web.UI.WebControls;
使用 System.Web.UI.WebControls.WebParts;
使用 System.Web.UI.HtmlControls;
使用系统文本;
使用系统.IO;
使用 System.Text.RegularExpressions;
公共部分类 testword : System.Web.UI.Page
{
}
如果您使用 word 2003 和 word 2007 运行此代码,您就会知道我想问什么
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
public partial class testword : System.Web.UI.Page
{
}
If you run this code using word 2003 and word 2007 you ll come to know what I am trying to ask