Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
¿Cómo descargar Power BI Embed Report a PDF usando Js?

Así que quiero generar mi tablero de PowerBI a pdf en mi sitio web, y muestro mi tablero de powerBI usando un código de incrustación de iframe como este:

Envuelvo el código iframe por:

 <!-- 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>

Aquí está el script de encabezado:

aquí está el archivo js: function generatePDF(){ const element = document.getElementById("reporttt");

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

}

cuando se hace clic en el botón, el archivo pdf que se descargó es una página vacía, ¿cómo puedo resolver esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!