Forum Discussion
Rendering HTML Images in Paginated Reports
- 1 year ago
Power BI Report Builder doesn't support <img> tags in HTML, so images won't render. As a workaround, extract the image URLs from the HTML in SQL or DAX, pass them as separate fields, and display them using Image controls in the report. This allows dynamic rendering based on parameters while supporting pagination.
- Anonymous1 year ago
Hi mp1234 ,
Thank you for reaching out to Microsoft Fabric Community Forum.
BhavinVyas3003 Thank you for your response.
mp1234 , as @Bhavin mentioned Power BI Report Builder supports pagination but does not support rendering <img> tags in HTML. In your scenario, images are dynamic , so embedding is also not an option.
Please try below workarounds:
- In Report Builder, Separate out the image URLs from the text (using SQL or Power Query), keep the text content in one field and the image URL(s) in another.
- In Report Builder, Use a Textbox for the text content and use Image Control with the image URL field. Set the Image control to "External" and bind it to the URL.
This allows pagination and dynamic image rendering, bypassing the <img> tag limitation.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos " – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
- Anonymous1 year ago
Hi mp1234 ,
Thanks for your follow-up!
Unfortunately, Power BI Report Builder (like SSRS) doesn't fully support HTML tags like <table> ,that's why your table formatting is getting lost and showing up as plain text when paginated.
Please try below workarounds:
- If your HTML tables follow a pattern, try extracting the data into rows and columns using SQL or Power Query. Then use a Table or Matrix visual in Report Builder to show the data with proper formatting and pagination.
- If possible use custom app where you can use a browser control to show the full HTML as intended ,with proper table formatting.
- As a final option, you could pre-render the HTML into an image and show that in the report. But this isn’t great if your content changes based on filters or user input.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos " – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
Hi mp1234 ,
Thanks for your follow-up!
Unfortunately, Power BI Report Builder (like SSRS) doesn't fully support HTML tags like <table> ,that's why your table formatting is getting lost and showing up as plain text when paginated.
Please try below workarounds:
- If your HTML tables follow a pattern, try extracting the data into rows and columns using SQL or Power Query. Then use a Table or Matrix visual in Report Builder to show the data with proper formatting and pagination.
- If possible use custom app where you can use a browser control to show the full HTML as intended ,with proper table formatting.
- As a final option, you could pre-render the HTML into an image and show that in the report. But this isn’t great if your content changes based on filters or user input.
|
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos " – I’d truly appreciate it! |
Regards,
B Manikanteswara Reddy
Hi mp1234 ,
We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
|
Please don't forget to give a "Kudos " – I’d truly appreciate it! |
Regards,
B Manikanteswara Reddy
- mp12341 year agoRegular Visitor
Hi Anonymous
Thank you for the solutions. Unfortunately HTML content is all combined into one row of data embedded within a single field - this includes tables/images and plain text, so separating the data into rows and columns would lose the the order of the content.
Additionally, the images are stored as URL links which show an error when I try to use PowerBI visuals
URL link example:
“https://api.companyname/media-persistence-prd/RetrieveImage/......”
Is this an authentication issue which is not allowing me to see the images?
Thanks
- Anonymous1 year agoNot applicable
Hi mp1234 ,
Since all your HTML (including text, tables, and images) is combined into one field, we understand it's not really possible to split it up without losing the structure or order of the content.
Regarding the image URLs not displaying in Power BI Report Builder—this is most likely due to authentication. Report Builder (and SSRS) can’t render images that come from URLs requiring login or secure access. Unless the image URL is publicly accessible (i.e., no authentication needed), it won’t work in the report.
https://api.companyname/media-persistence-prd/RetrieveImage/...
which is probably protected by your company’s authentication, which Report Builder can’t handle.
If your org can expose the images through a public or read-only endpoint, you can use an Image control in Report Builder and set the source to "External" with that URL. If not, another option would be to build a custom web app or Power App that takes your report parameters and fully renders the HTML (images, tables, etc.) with pagination or scrolling built in. Or, if you’re using Power BI Desktop, try simulating pagination with bookmarks or page breaks and export to PDF. Not ideal, but it may help depending on your use case.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
- Anonymous1 year agoNot applicable
Hi mp1234 ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Please don't forget to give a "Kudos " – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy