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.
I'm using Power BI Embedded. When printing a report "Microsoft Power BI" and the Url are added to the top of the report. Is there any way to remove this?
Hi @Anonymous - I can't answer this from a Power BI Embedded perspective, but just wanted to throw this up as a possibility. Are you printing using the function in your web browser? If so then most browsers have a Headers and Footers option in their print dialog that is set by default.
Here's where to find in Chrome:
Here it is in Edge:
Internet Explorer (of course) is a bit different, and this can be found in Print Preview > Page Setup. Make sure all boxes in the Headers and Footers section are set to -Empty-, e.g.:
Hopefully this might be what you need. If not, then I'm sure one of the more experienced Embedded folks can help you out.
Good luck!
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Thanks Daniel, but this is for my customers and the print function is being called using the api function report.print(), so this wouldn't work. What I'm looking for is if there is a way during the call the stop those headers from being added.
Hmmm... I've had a look at print() and its doc states that it's invoking window.print(), which is pretty much browser-specific, and has no additional parameters available to it.
I've done some research (read: furious Googling and experimenting with answers) on what can be done when working with this method, and there doesn't seem to be much that can be done about it. A lot of these articles suggest using a CSS Media Query, but I couldn't find an example that really worked.
The best I could find was this answer on StackOverflow - it's from a while ago but there is still some recently discussion on it so you may have some success - this answer from last year suggests that you might get somewhere with using modern Chrome/Firefox.
I'll have to tap-out at this point, but hopefully this might help.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Thanks. It looks like I'll have to live with it for now.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |