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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Embed in to web with transparency - everywhere or nowhere

Good day,

 

We embedded PowerBI reports using example MVC web application with transparent background using following settings:

 

 

            var config = {
                type: 'report',
                tokenType: models.TokenType.Embed,
                accessToken: accessToken,
                embedUrl: embedUrl,
                id: embedReportId,
                permissions: models.Permissions.All,
                settings:
                {
                    background: models.BackgroundType.Transparent,
                    filterPaneEnabled: false,
                    navContentPaneEnabled: true,
                    localeSettings: {
                        language: 'en',
                        formatLocale: 'en'
                    }
                }
            };

 

 

However, now all report's background became transparent, despit transparency level set there. Originally, without "background: models.BackgroundType.Transparent" transparency didn't work at all.

 

How this could be taken under control without setting some picture as a background in all non-transparent reports?

Grateful in advance!

4 REPLIES 4
Anonymous
Not applicable

yes... is it as designed?

Anonymous
Not applicable

Yes, but their backgrounds (areas not covered by any UI control element, like table, slicer, etc.), not backgrounds of UI controls. And it doesn't respect this general background transparency setting - no effect.

Anonymous
Not applicable

Exactly! Then only UI control's transparency value has an effect over appearance (like text box background transparency value) but it is limited to control's area only.

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

v-lionel-msft_0-1616744565279.png

In other words, when you do this, all pages become transparent?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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