首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Word.PrintOut,该怎么处理

2012-01-19 
Word.PrintOut請問: myWord.PrintOut(ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMis

Word.PrintOut
請問: myWord.PrintOut(ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
這句word打印代碼可以在客戶端使用嗎?
如果不行呢么web里打印word要用什么方法~~
急問~~

[解决办法]
用JavaScript调用Word.application

JScript code
<script language=JavaScript>var wrd=new ActiveXObject("Word.Application")wrd.visible=truealert("您的"+wrd.Application.Caption+"安装路径为:\n"+wrd.Application.Path+"\n版本号是:"+wrd.Application.version+"\n注册使用者是:"+wrd.Application.UserName)wrd.Documents.Open("d:\exam.doc")wrd.Selection.TypeText("This is some text.")wrd.Application.Activate()wrd.ActiveDocument.SaveAs("d:\exam111.doc")wrd=null</script>
[解决办法]
需要ActiveX,不能直接调用printout

热点排行