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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
artjomsf
Frequent Visitor

Dark Mode Pdf export makes canvas dark bug

Hello everyone, 

I am using Power BI Desktop Version: 2.137.952.0 64-bit (October 2024)

 

I have switched on recent Dark Mode, which specifically states it does not change canvas style. Yet the report canvas does change if I try to export report page as pdf, see screenshots:

How my report page looks like in editing mode:

artjomsf_0-1729672439245.png

How my page looks in pdf export:

artjomsf_1-1729672519936.png

All fonts etc. remain the same, but background is dark, hence it completely kills the report. Setting different colors of background (e.g., to black) or changing transparancies does not help.

 

And if I try to switch back to Light Mode, I now simply cannot! The dropdown is there, I can select either Legacy, Light, Dark, System default, but when I press OK, nothing changes. It does not work for my exsiting report, nor for new dummy reports I tried to create. 

 

The only workaround I can find now is to take pure white image and put it as background image - then it obviosuly work at the expense of hassle.

 

Is it a bug or I am missing anything? Is there a way to fix it, at least by somehow getting out of dark mode at least?

 

Thanks! 

 

 

  

1 ACCEPTED SOLUTION
Expiscornovus
Solution Sage
Solution Sage

Hi @artjomsf,

 

You should be able to switch back via the interface. I cannot reproduce that issue in the version I am using, 2.137.751.0 64-bit (October 2024). In that version I am able to switch back. 

 

The Power BI Desktop app stores its settings in an xml file which is within a users.zip file of somebody's local appdata folder of the user profile:

https://community.fabric.microsoft.com/t5/Desktop/Desktop-Settings/m-p/344631

 

In my case it was stored in the

C:\Users\MyUserName\Microsoft\Power BI Desktop Store App\User.zip

 

The zip contains a folder and settings file

UserInterface\Settings.xml

 

You could inspect this file with for example ProcMon, just to see if an error occurs when you try to update the theme (file handle/in use error maybe?).

 

procmon_powerbidesktop.png

 

There should be an AppTheme Entry with a sDark value. Light would be sLight.

 

 

<Entry Type="AppTheme" Value="sDark" />

 

 

 



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

View solution in original post

4 REPLIES 4
v-xianjtan-msft
Community Support
Community Support

Hi @artjomsf 

 

I'm using Power BI Desktop version 2.137.952.0 64-bit (October 2024) which does not reproduce the problem, and I can switch back and forth between different appearances.

Please try the following steps:
1. Restart Power BI Desktop to see if the settings take effect.
2. Uninstall and reinstall Power BI Desktop to see if the problem still occurs.

 

Furthermore, according to my research, “This setting won't change the report canvas” means that switching to a different appearance won't change the default settings of the canvas. The default setting of the background transparency of the canvas is 100%. So in Dark mode the whole background of the exported PDF background is dark. Adjust the transparency to 0%, the exported PDF background color is consistent with your settings.

vxianjtanmsft_3-1729756127605.pngvxianjtanmsft_0-1729755300349.png

Legacy/ Light mode:

vxianjtanmsft_5-1729756535415.png

Dark mode:

vxianjtanmsft_4-1729756476110.png

 

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

Thank you, this did solve the problem of changin canvas colors. I've misterinterpreted the information on Canvas settings. Still, that means I cannot have partially transparent canvas color with Dark Mode enabled (as it will result with partially transparent canvas overlaying black background and resulting in completely different color that I would imagine). Not sure if it is a bug or feature now, but then I will have to stick to Light Mode.

Expiscornovus
Solution Sage
Solution Sage

Hi @artjomsf,

 

You should be able to switch back via the interface. I cannot reproduce that issue in the version I am using, 2.137.751.0 64-bit (October 2024). In that version I am able to switch back. 

 

The Power BI Desktop app stores its settings in an xml file which is within a users.zip file of somebody's local appdata folder of the user profile:

https://community.fabric.microsoft.com/t5/Desktop/Desktop-Settings/m-p/344631

 

In my case it was stored in the

C:\Users\MyUserName\Microsoft\Power BI Desktop Store App\User.zip

 

The zip contains a folder and settings file

UserInterface\Settings.xml

 

You could inspect this file with for example ProcMon, just to see if an error occurs when you try to update the theme (file handle/in use error maybe?).

 

procmon_powerbidesktop.png

 

There should be an AppTheme Entry with a sDark value. Light would be sLight.

 

 

<Entry Type="AppTheme" Value="sDark" />

 

 

 



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

Many thanks for pointing out to the XML location. I've ended with kust manually altering the value inside to 'sLight' and it did work. Perhaps reinstalling would work, but for quick and dirty soltuion for now that helps.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.