Forum Discussion
Setting the iframe background for embedded reports (default gray color is terrible)
Ok, thanks for the info Nimrod.
One thing that might be really nice - allow us, in the embed call, to pass in a URL to a CSS resource that's external to PowerBI. Then, when the report renders in the iFrame, it includes that CSS. This way, we're in control of the CSS and can change up the report styling any way we choose.
tmcdevitt wrote:
Ok, thanks for the info Nimrod.
One thing that might be really nice - allow us, in the embed call, to pass in a URL to a CSS resource that's external to PowerBI. Then, when the report renders in the iFrame, it includes that CSS. This way, we're in control of the CSS and can change up the report styling any way we choose.
I guess you may have intrest in
- tmcdevitt8 years agoAdvocate II
Hi Eric,
We've looked at themes but they really don't get us what I'm talking about. First, they don't deal with the issue of the gray background. Second, and most important, you need to "install" them for each report and you have to do it via Desktop. So, if we've got a bunch of reports and need to roll out a theme change, guess what? We need to download each dataset, open them in Desktop, "import" the theme that changed and then publish the report. It's tedious, for sure.
Since we're embedding reports, it would be way easier for us if we could just send you a URL to a CSS file (one that we control external to PowerBI) and then, within the embedded iframe, you guys just include the CSS file such that the styles within will be applied to the contents of the iframe.
One other thing on themes - there doesn't appear to be a library of themes that Desktop is aware of. For example, let's say I pull down Theme A from the online theme gallery. I save that JSON file locally and then import it into a report in Desktop. Then, I want to experiment with another theme, Theme B. So, I download the JSON and import but I don't like it. So, I want to "switch" the theme in the report back to Theme A. Well, unfortunately, Desktop has no memory of Theme A. I need to go back to my local machine and import the JSON file that I had downloaded. That's fine for me but someone else who might be editing the report in another instance of Desktop won't have that JSON file on their local machine (and likely won't have any idea where to get it). Ideally, Desktop would remember all of the JSON themes that have been imported and allow you to easily switch between them without having to reupload the theme every time (Actually, now that I think about it, Desktop (and really, the online report editor) should be able to show the user the themes in the online gallery and let them install them directly from there as well).
- Terence