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
ysapiyev
Responsive Resident
Responsive Resident

Borders of report

Hi everyone

I embedded Power BI report in web application and got borders of report. I set background transparency of report in Power BI Desktop to 100% and set embedding settings:

settings: { background: models.BackgroundType.Transparent }

However, I still got these lines:

get.png 

 

How they can be removed?

 

update: If I use Firefox browser, I get black borders. White borders I get in Google Chrome.

Regards,

Yerkhan

1 ACCEPTED SOLUTION

@v-jiascu-msft

 

Hi,

 

Was able to solve this issue adding border-style:none to power-bi.js file.

 

Regards,

Yerkhan

View solution in original post

7 REPLIES 7
Hellidana
New Member

Hi,

fixed that using next style

:host ::ng-deep iframe {
border: none;
}

Thanks! This works perfectly, and it is the only workable solution I found for ngx-powerbi.

v-jiascu-msft
Employee
Employee

Hi Yerkhan,

 

Which part do you mean? Is the one in the rectangle in the snapshot below?

Borders-of-report

If so, the https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html could give you some ideas. I will get back to you if I find the key parts.

 

 

Best Regards,
Dale

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

@v-jiascu-msft

 

Hi,

 

Was able to solve this issue adding border-style:none to power-bi.js file.

 

Regards,

Yerkhan

Where did you add this to the js file?

@alexbjorlig 

 

powerbi-client/dist/powerbi.js

 

Line 838 (or so) add iframeContent.style.border = 'none';

 

Here it is added in context: 

 Embed.prototype.setIframe = function (isLoad, phasedRender) {
	        var _this = this;
	        if (!this.iframe) {
	            var iframeContent = document.createElement("iframe");
	            var embedUrl = this.config.uniqueId ? utils.addParamToUrl(this.config.embedUrl, 'uid', this.config.uniqueId) : this.config.embedUrl;
	            iframeContent.style.width = '100%';
				iframeContent.style.height = '100%';
				iframeContent.style.border = 'none';

 

I've been irritated with that border for weeks. Finally came across this which led me down the right path to find it. 

Thanks for sharing, @ysapiyev.

 

 

Best Regards,
Dale

Community Support Team _ Dale
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.

Top Kudoed Authors