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

153
Visualizações
Window.print in angular not working if some image or script in page fails to load properly

We have angular microapp sitting inside big parent app.

I am using window.print() to print the page.

But sometimes there are some images/scripts from parent app related to analytics(Nothing related to page operation and doesn't affect page operation any way) which doesn't load properly. We have no control over the parent app code and we cannot modify/correct it. At this point I am able to use all the function of my microapp except window.print() It doesn't work.

It only works when I give window.stop() in the console.

I didn't found any reference in my research which points out that window.print() will not work(even the popup window doesn't come up) and waits until the faulty image/script is timed out after like 5-6 minutes. Please help.

  public PrintForm(): void{
window.print();
 }
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