Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
Suggestion for printing content in Chrome and Edge

Hi we are using below code for printing in IE browser

function ieExecWB( intOLEcmd, intOLEparam ) {

    try {
       // Create OLE Object
        var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
        // Place Object on page
        document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
        //to handle the runtime errors if printer is not connected
        oldHandler = window.onerror;
        // if intOLEparam is not defined, set it
        if ( ( ! intOLEparam ) || ( intOLEparam < 2 )  || ( intOLEparam > 2 ) )
        intOLEparam = 2;
        // Execute Object
        WebBrowser1.ExecWB(intOLEcmd, intOLEparam);
        // Destroy Object
        WebBrowser1.outerHTML = "";
        window.onerror = oldHandler;

    }catch(vException){
        return;
    }
}//end of ieExecWB()

window.parent.frames.item('frameLeft').document.close();  
window.parent.frames.item('frameLeft').focus();             
document.frmBD0103.hdnPrnCookie.value = "";                                                                        
ieExecWB(6,PRINT_WITHOUT_PROMPT);
window.parent.frames.item('frameLeft').document.open();
window.parent.frames.item('frameLeft').document.write("Left Frame.....");
window.parent.frames.item('frameLeft').document.close();

Now we are changing browser from IE to Edge and Chrome.

Could you please suggest best way to use above functionality in chrome and edge browser.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda