社区
JavaScript
帖子详情
怎样用js引入word内容到htmledit中?急需
crazyrain
2003-06-10 03:43:42
利用input type=file的表单选择一个word文档,怎样把内容取到一个htmledit中呀,或者取到textarea,谢谢
...全文
48
3
打赏
收藏
怎样用js引入word内容到htmledit中?急需
利用input type=file的表单选择一个word文档,怎样把内容取到一个htmledit中呀,或者取到textarea,谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xujun9615
2003-06-10
打赏
举报
回复
打开Word对象,对Word对象进行选择,复制,然后在对你的htmledit粘贴就可以了
具体代码如下
function showWord(a)
{
docpath="c:\\"+a+".doc";
onerror=errormsg;
myword = new ActiveXObject("Word.Application");
//myword.Application.Visible = true;
myword.Documents.Open(docpath);
myword.Selection.WholeStory();
myword.Selection.Copy();
newDocument();
myEditor.document.execCommand('Paste');
myword.Quit();
myword=null;
}
zlbox
2003-06-10
打赏
举报
回复
input type=file没玩过,把你的代码贴出来,我看看在帮你一起研究
nik_Amis
2003-06-10
打赏
举报
回复
up
Html
Edit
2.0
Html
Edit
2.0 - WYSIWYG
Html
Edit
ing for Delphi
Html
Edit
is the first native WYSIWYG (What You See Is What You Get)
HTML
Edit
or written completely in Delphi, and allows you to enable your applications for
HTML
Edit
ing capabilities without dependencies on MS
HTML
or other third party DLLs.
Html
Edit
is ideal for use in applications that require input and handling of rich text with formattings and graphics, such as Content Management Systems Web Site
Edit
ors Help Authoring Tools
Word
Processing etc.
html
Edit
简单的网页编辑,很实用的。。。
Register_
Html
Edit
delphi
Register_
Html
Edit
delphiRegister_
Html
Edit
delphiRegister_
Html
Edit
delphi
html
edit
网页编辑器
很简单的网页编辑器,简单实用,所见即所得!
delphi编辑
Html
Edit
编辑
Html
Edit
ps
Html
Edit
Html
Edit
3.0 delphi 5 6 7 2005
JavaScript
87,923
社区成员
224,618
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章