ext 如何调用打印控件 ?谁搞过的?给个例子?
<OBJECT id="factory" codeBase="ScriptX.cab#Version=6,3,434,26"
height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
</OBJECT>
<input type="button" id="btnPrintpre" value="打印预览(Alt+o)" accesskey="o" onClick="factory.printing.Preview();">
<OBJECT id="factory" codeBase="ScriptX.cab#Version=6,3,434,26"
height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
</OBJECT>
<input type="button" id="btnPrintpre" value="打印预览(Alt+o)" accesskey="o" onClick="factory.printing.Preview();">
onClick="window.document.getElementById('factory').printing.Preview();"
html:"<object></object>"
var AddPublishwin=new Ext.Window({
title:"新交易单",
width:800,
height:510,
buttons:[{
text:"保存信息(S)",
id:"save",
minWidth:70,
handler:function(){}
,{
text:"打印预览(O)",
minwidth:70,
handler:print
handler:function()
{
//在这边写?怎么写?望赐教
}
},{
text:"直接打印(P)",
minwidth:70,
handler:function()
{
}
}],
text:"直接打印(P)",
minwidth:70,
handler:function()
{
//谁给些完整点
}
}],
{
text:"打 印",
cls:'x-btn-over',
tooltip:"打 印",
iconCls:"printicon",
listeners:{
'mouseout':function(o){
this.el.addClass('x-btn-over');
}
},
handler:function(){
window.print();
}
}
'mouseout':function(o){
this.el.addClass('x-btn-over');
}
},
你这个是啥意思啊 出现 对象不支持此属性或方法
height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
</OBJECT>
这个啊
汗 你就别将我的直接复制过去啊 我这是另外一个改变样式的
你只管替换你的handler:function(){
window.print();
}
window.print();
}这个可以弹出选择打印机的界面 但是我想直接预览内容 你这是调用window的直接打印 我想调用第三方控件打印啊 怎么使用<OBJECT id="factory" codeBase="ScriptX.cab#Version=6,3,434,26"
height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
</OBJECT>