c#怎么打印界面?主要是想打印panel1里的东西,里面有图片还有文字。

来源:百度知道 编辑:UC知道 时间:2024/06/22 21:58:42

是C/S的还是B/S的啊

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(dayin);
sel.select();
sel.execCommand("Copy");
oRange.Paste();
oWD.Application.Visible = true;
}