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

314
Visualizações
How can i format report generated with excel file using jquery or laravel framework?

I have generated this report in excel using jquery but I want to format this report also Is there any Laravel package or any jquery plugin which I can use to convert this file formating into this

   <script>
$(".btn-create-now").click(function(e) {
    $html = $(".table-holding-data").html();
    $("#div_convert_table_into_file table").html($html);
    $("#div_convert_table_into_file table").find("*").removeAttr('class');
    $("#div_convert_table_into_file table").find("*").removeAttr('style');
    window.open('data:application/vnd.ms-excel,' + $('#div_convert_table_into_file').html());
    e.preventDefault();
});
</script>

Here is my code of jquery to generate report

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Mattwebsite/excel is a laravel package used to create excel files. Read documentation of maatwebsite/excel

   public function downloadExcel()
    {
        $data = Post::get()->toArray();
        return Excel::create('laravelcode', function($excel) use ($data) {
            $excel->sheet('mySheet', function($sheet) use ($data)
            {
                $sheet->fromArray($data);
            });
        })->download('name.xlsx');
    }

Javascript/JQuery

TableExport The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.

about 4 years ago · Santiago Gelvez Relatório
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