Skip to Content
Author's profile photo Xavier Polo

HANA Studio on High resolution displays

If you try to work with SAP HANA Studio on HiDPI (High resolution display), like Apple retina or Microsoft Surface, you will see that there is a problem with the size of the icons:

In Surface 4 at 2736×1824, icons are tiny, unusable, as you can see in the screenshot (compare it with the size of the fonts):

/wp-content/uploads/2016/05/2016_05_31_17h26_00_965001.png

As HANA Studio is based in Eclipse, I tried some recommendations that I found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60 with correct results:

/wp-content/uploads/2016/05/2016_05_31_17h24_38_965002.png

Windows instructions

Create a new registry key with REGEDIT

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\

And create a new entry (DWORD VALUE)

Name: PreferExternalManifest

Value: 1

Create a Manifest file

Open hdbstudio.exe location (by default C:\Program Files\sap\hdbstudio)

Create a new file: hdbstudio.exe.manifest  (or use the attached file, and remove .xml extension)

with this content:

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>

<assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″ xmlns:asmv3=”urn:schemas-microsoft-com:asm.v3″>

    <description>eclipse</description>

    <trustInfo xmlns=”urn:schemas-microsoft-com:asm.v2″>

        <security>

            <requestedPrivileges>

                <requestedExecutionLevel xmlns:ms_asmv3=”urn:schemas-microsoft-com:asm.v3″

                               level=”asInvoker”

                               ms_asmv3:uiAccess=”false”>

                </requestedExecutionLevel>

            </requestedPrivileges>

        </security>

    </trustInfo>

    <asmv3:application>

        <asmv3:windowsSettings xmlns=”http://schemas.microsoft.com/SMI/2005/WindowsSettings“>

            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings=”http://schemas.microsoft.com/SMI/2005/WindowsSettings“>false</ms_windowsSettings:dpiAware>

        </asmv3:windowsSettings>

    </asmv3:application>

</assembly>

Now, you can open your HANA Studio with “normal” icons 🙂

Disclaimer: Note that modifying the registry can cause serious problems that may require you to reinstall your operating system.

Assigned tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hello Xavier,

      Thanks ever so much for this workaround. I have been suffering with my UHD 4K (3840x2160) screen and studio.

      The workaround does make the text slightly jagged and fuzzy (blurred) but at least the text is legible and the icons are visible.

      Thanks again.

      KR,

      Amerjit

      Author's profile photo Priyar Sundaramoothy
      Priyar Sundaramoothy

      Hello Xavier and Amerjit,

      I tried the same, but it didn't work for me. My screen resolution is 3840 x 2160.

      I updated the registry and created a new notepad file "hdbstudio.exe.manifest" and pasted the given code. Still, no luck.

      Author's profile photo Xavier Polo
      Xavier Polo
      Blog Post Author

      I don't know if this method is supported by current HANA Studio versions.

      You can try a different approach because from 2018, Eclipse supports HDPI screens.

      1. Edit hdbstudio.ini
      2. below -vmargs add the line
        -Dswt.autoScale=200
      3. Note that 200 should double the size. You can adjust this value to your needs

      If you are on windows, you can try to modify compatibility mode (instead of the above):

      1. Locate HANA Studio Icon, and right click on it
      2. Select Properties > Compatibility Tab
      3. Under Settings Section check "Override High DPI scaling behaviour", and set "Scaling performed by" = System.
      4. Accept changes.

      Regards,

      Author's profile photo Priyar Sundaramoothy
      Priyar Sundaramoothy

      Thanks a lot Xavier. The second option worked.

      But the texts are blurry still readable.Thanks again.