Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Add print and download buttons in embedded report.

How do I add the print and download/export report buttons in the PowerBI report that is embedded in a web application?

These buttons are present in the Power BI service:

Screenshot 2024-04-24 at 10.34.30 AM.png

 But not available once the report is embedded.

Screenshot 2024-04-24 at 10.36.11 AM.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

To add print button and download button, you can get it by Javacript API:

// Embed the report
var embedContainer = $('#embedContainer')[0];
var config = {
    type: 'report',
    tokenType: models.TokenType.Embed,
    accessToken: 'YOUR_ACCESS_TOKEN',
    embedUrl: 'YOUR_EMBED_URL',
    id: 'YOUR_REPORT_ID',
    permissions: models.Permissions.All,
    settings: {
        filterPaneEnabled: false,
        navContentPaneEnabled: false
    }
};
var report = powerbi.embed(embedContainer, config);

// Add the print button
var printButton = $('#printButton');
printButton.on('click', function() {
    report.print();
});

// Add the export button
var exportButton = $('#exportButton');
exportButton.on('click', function() {
    report.exportData(models.ExportDataType.Summarized);
});

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

To add print button and download button, you can get it by Javacript API:

// Embed the report
var embedContainer = $('#embedContainer')[0];
var config = {
    type: 'report',
    tokenType: models.TokenType.Embed,
    accessToken: 'YOUR_ACCESS_TOKEN',
    embedUrl: 'YOUR_EMBED_URL',
    id: 'YOUR_REPORT_ID',
    permissions: models.Permissions.All,
    settings: {
        filterPaneEnabled: false,
        navContentPaneEnabled: false
    }
};
var report = powerbi.embed(embedContainer, config);

// Add the print button
var printButton = $('#printButton');
printButton.on('click', function() {
    report.print();
});

// Add the export button
var exportButton = $('#exportButton');
exportButton.on('click', function() {
    report.exportData(models.ExportDataType.Summarized);
});

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.