[急急急]怎么样将页面的数据导出成word!100分 一个aspx页面,有一些TextBox文本框,如何将文本框的内容点击导出按钮时,导出到word上,最好也能导出图片的。有例子的麻烦说下,万分感谢。! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function AllAreaWord(){ var oWD = new ActiveXObject("Word.Application"); var oDC = oWD.Documents.Add("",0,1); var orange =oDC.Range(0,1); var sel = document.body.createTextRange(); sel.moveToElementText(PrintA); sel.select(); sel.execCommand("Copy"); orange.Paste(); oWD.Application.Visible = true;}读取textbox 内容COM操作操作WORD文件addpicture添加图片mydoc.ActiveWindow.ActivePane.Selection.InlineShapes.AddPicture("C:\\test.jpg", ref oMissing, ref oMissing, ref oMissing);http://topic.csdn.net/u/20101226/11/7a3ea6e4-e2b5-4a6a-80c6-53c4785fda1e.html 我想在.NET页面上放个视频播放器,不知道哪种播放器好些? 请大家帮我看看 excel导入大量数据只上传前3行 GridView 添加数据 关于自动匹配数据进行更新的问题(关键词) 求一个这样的分页代码 url模式匹配问题 怎么样做好软件需求分析? 在ASP.NET中如何调用自已编写的DLL 怎么写一个*.ascx文件!谢谢! 求助,很急,大家帮帮我吧,会感谢你们的 帮帮忙
{
var oWD = new ActiveXObject("Word.Application");
var oDC = oWD.Documents.Add("",0,1);
var orange =oDC.Range(0,1);
var sel = document.body.createTextRange();
sel.moveToElementText(PrintA);
sel.select();
sel.execCommand("Copy");
orange.Paste();
oWD.Application.Visible = true;
}读取textbox 内容
COM操作
操作WORD文件addpicture添加图片mydoc.ActiveWindow.ActivePane.Selection.InlineShapes.AddPicture("C:\\test.jpg", ref oMissing, ref oMissing, ref oMissing);
http://topic.csdn.net/u/20101226/11/7a3ea6e4-e2b5-4a6a-80c6-53c4785fda1e.html