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

129
Visualizações
Print function printing columns that should be side by side down the page instead

What should be printing enter image description here

Whats actually printing

enter image description here

Here is the code for the print function

function removeLinks(printDiv) {
            var all_links = document.getElementById(printDiv).getElementsByTagName("a");

            for (var i = 0; i < all_links.length; i++) {
                all_links[i].removeAttribute("href");
            }
        }

        function printdiv(printDiv) {
            var divCaseNote = document.getElementById(printDiv);
            var oldstr = document.body.innerHTML;
            var oldTitle = document.title;

            if (divCaseNote != null) {
                divCaseNote.style = "padding: 20px;";
                innerHTML = divCaseNote.innerHTML;
            }

            removeLinks(printDiv);

            var headstr = "<html><head rel=\"stylesheet\" media=\"print\" link href=\"/CSS/print.css\"/><title> </title></head><body>";
            var footstr = "</body>";
            var newstr = document.getElementById(printDiv).innerHTML;
            document.body.innerHTML = headstr + newstr + footstr;
            document.title = oldTitle.replace(" - View Case Note", "");

            window.print()

            document.body.innerHTML = oldstr;
            document.title = oldTitle;
        }

When I check out the HTML output it has all the div tags defined with the correct column sizes but these aren't transferred over when it prints. Does anyone know why these columns are printing one after the other as opposed to side by side.

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