SSRS Image rotate when exported

David Carvalho 6 Reputation points
2023-01-04T16:50:37.55+00:00

If a report is rendered with an image (with an "External" source and a URL in the expression) it is OK, but when it is exported to PDF the image gets rotated -90º on the PDF file.

This issue can be seen in several versions of SSRS and on the MS PowerBI Paginated Reports.

I really appreciate any help you can provide.

David Carvalho

EDIT1: I tried to upload the report in portrait and landscape orientation and the result is the same, the image from the report's renderization presents a rotation when exported to PDF.

EDIT2: This behaviour can be seen in other formats besides PDF, exporting to Excel, Word, PowerPoint, etc, the result will be the same.
Here some screens:
Report Builder
276492-image.png
Report Server
276424-image.png
PDF file exported
276483-image.png

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,910 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Michael Taylor 53,396 Reputation points
    2023-01-04T19:28:43.037+00:00

    In every case where the image is messed up when exported the issue has been with the original image in my experience. For example if the picture was actually taken in portrait mode. In the report it is rotated to landscape which makes it look correct but the exporter doesn't do the rotation and show it shows the original image in portrait. The fix has been to correct the image itself. Can you confirm the image is in landscape orientation when you save it directly to disk and not rotated.

    0 comments No comments

  2. David Carvalho 6 Reputation points
    2023-01-04T19:46:09.813+00:00

    The orientation does not matter with this issue, I upload the report with both orientations, and the image rotate when it was exported to pdf.


  3. AniyaTang-MSFT 12,441 Reputation points Microsoft Vendor
    2023-01-05T02:00:02.71+00:00

    Hi @David Carvalho
    Do you mean that after the report is uploaded, it is displayed normally in the browser, but the image is rotated when it is exported to PDF? Does this problem happen when you export to other file formats such as Word, Excel, etc.? Can you show some screenshots to let us understand the problem in more detail?
    Best regards,
    Aniya


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.