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();">

解决方案 »

  1.   

    跟ext没啥关系 直接调用控件的方法
      

  2.   


    onClick="window.document.getElementById('factory').printing.Preview();"
      

  3.   

    是的,打印是打印的操作吧。跟ext是没有关系的。
      

  4.   

    ext中潜入html代码就可以了
    html:"<object></object>"
      

  5.   

    我的打印按钮是放在 new ext.window()中的 要怎么写呢?
    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()
            {
               
            }
    }],
      

  6.   

    },{
    text:"直接打印(P)",
    minwidth:70,
    handler:function()
    {
      //谁给些完整点 
    }
    }],
      

  7.   


    {
                text:"打 印",
                cls:'x-btn-over',
                tooltip:"打 印",
                iconCls:"printicon",
                 listeners:{
                    'mouseout':function(o){
                        this.el.addClass('x-btn-over');
                    }
                },
                handler:function(){
              window.print();
        }
                }
      

  8.   

    listeners:{
                                'mouseout':function(o){
                                    this.el.addClass('x-btn-over');
                                }
                            },
    你这个是啥意思啊 出现 对象不支持此属性或方法
      

  9.   

    没有看到引用<OBJECT id="factory" codeBase="ScriptX.cab#Version=6,3,434,26"
      height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
      </OBJECT>
    这个啊
      

  10.   


    汗  你就别将我的直接复制过去啊 我这是另外一个改变样式的
    你只管替换你的handler:function(){
                                  window.print();
                            }
      

  11.   

    handler:function(){
                                  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>