Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

285
Vistas
How to download Power BI Embed Report to PDF using Js?

So I want to generate my PowerBI dash to pdf on my website, and I show my powerBI dash by using iframe embed code like this :

I wrap the iframe code by :

                <!-- Page Heading -->
                <div class="d-sm-flex align-items-center justify-content-between mb-4" >
                    <h1 class="h3 mb-0 text-gray-800">Averagion Dashboard</h1>
                            <button onclick="generatePDF()" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm">
                                <i class="fas fa-download fa-sm text-white-50"></i> Generate Report</a>
                            </button>
                </div>

here is the the header script :

here is the js file : function generatePDF(){ const element = document.getElementById("reporttt");

html2pdf()
.from(element)
.save();

}

when the button is clicked, the pdf file that downloaded are empty page, how can I resolve this ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda