Report viewer has black spaces on the right side

2 posts, 0 answers
  1. Sunil
    Sunil avatar
    3 posts
    Member since:
    Jan 2016

    Posted 30 Oct 2018 Link to this post

    Hi,

    We have a winform application which used telerik to show few reports.

    When we try to view the reports with 150% scaling the reports are all skewed to the left with huge white spaces to the right.

    One solution we found is to make our application DPI aware, that seems to fix the report issues but since our application is not built for scaling we cannot make it DPI aware without huge re writes!

    Is there a way to fix with without making our application DPI aware?

  2. Todor
    Admin
    Todor avatar
    520 posts

    Posted 02 Nov 2018 Link to this post

    Hi Sunil,

    The reporting engine calculates the exact physical area necessary for each symbol and report item in the report. The physical size of the items depends on the DPI. When the application using the reporting engine is DPI aware, the items will be calculated based on the real DPI and the report will appear correctly. If the application is *not* DPI aware, the default value is 96dpi, which may generate an unexpected report layout in higher DPI environment. Hence, the application hosting the reporting engine needs to be DPI aware to generate the correct output.

    If you prefer not to declare the entire application as DPI aware, you may extract the reporting part in another application declared as DPI aware, and call this application from the main one - e.g. by using Process.Start.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top