I will no longer be posting to Dynamics GP Land, and all new posts will be at https://blog.steveendow.com
Thanks!
By Steve Endow
Update: If you are also having issues using Remote Desktop with high DPI displays, check out this post by Nathan Hayden at BKD on a workaround for RDP apps:
http://dynamicsinsights.com/2018/10/05/remote-desktop-high-dpi-dynamics-gp/
If you have a relatively new Windows laptop with a high resolution display or if you have 4K monitors on a Windows desktop, you are likely familiar with the numerous software display issues related to these "high DPI" displays.
If you use a 4K monitor at full resolution, the fonts and text in Windows is microscopic. To make text readable and buttons large enough to click, Windows uses "scaling", whereby it increases the size of text and graphics to make them readable and large enough to actually use. (I'm sure there's a huge technical discussion about the details, but I don't care about any of that, I just want to get work done.)
So when you run Windows 10 with a high DPI display, it will typically recommend running at 200% scaling. I prefer to use 175% to get more real estate on my displays.
This Scaling technique generally works well, and with many applications, you may not even realize that scaling is occurring...
Until you launch an application that isn't "high DPI aware" or high DPI compatible. Then you'll see a complete mess. I use SugarSync, which does not handle scaling very well. Notice the text on the left is very small compared to the folder names on the right.
It's annoying, but tolerable.
I thought that Dynamics GP 2015 displayed fine on my Surface Pro 4 when I first installed it, but I rarely use GP on my SP4, and when I launched it earlier this week, I saw this odd mix of font sizes. A colleague told me the same thing--GP used to display properly on his Surface Pro 4, but recently the fonts went haywire.
Notice the menus at the top are very large, while the text on the left panes is tiny.
Similarly, SQL Server Management Studio 2014 is a hot mess on high DPI displays. It was the SSMS 2014 issue that had me searching for a solution. And I came across this brilliant post.
http://www.sqlservercentral.com/blogs/spaghettidba/2015/10/14/ssms-in-high-dpi-displays-how-to-stop-the-madness/
Clearly the author has a pretty good understanding of the high DPI settings in Windows and figured out how to change the scaling method on a per-application basis using a manifest file.
I don't understand any of the mechanics, but I followed his instructions to import the extra registry key, then saved the Ssms.exe.manifest file to my machine. Like magic, SSMS 2014 displayed properly. The bitmap scaling on my displays at 175% is a bit fuzzy, but I'm okay with that, since it makes the applications much more usable. I can always try 150% or 200% scaling if necessary if the blurriness bothers me.
Since it worked for SQL Server Management Studio, I then wondered--could it work for Dynamics GP?
(Full credit goes to Gianluca Sartori for his article showing how to implement this fix--I didn't come up with any of this)
I created a Dynamics.exe.manifest file...and behold. GP launched just fine and rendered "normally", without the funky font sizes.
On a roll, I made a manifest file for SugarSync, and was pleased to see that it fixed SugarSync's scaling as well! SugarSync already had a manifest file, so I just edited it to add the additional settings from the SSMS 2014 sample.
I don't understand any of the settings in the manifest file, but it seems to be fairly generic and flexible, as I've just used the technique for 3 different applications.
If you want to give this a try, you do so at your own risk. If you don't know how to edit the registry or fix things if your computer goes haywire doing this, you should "consult an expert" to assist you.
Save this text to a file called "Scaling.reg".
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide]
"PreferExternalManifest"=dword:00000001
Once you have created the "reg" file, double click on it to import it into the Windows registry on the machine where Dynamics GP is installed.
Then save this text to a file called Dynamics.exe.manifest.
<?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">
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*">
</assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="amd64" publicKeyToken="1fc8b3b9a1e18e3b">
</assemblyIdentity>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</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>
Then copy your new Dynamics.exe.manifest file to the GP application directory where the Dynamics.exe file is located.
Give it a try and let me know if it works for you. I'm curious if it fixes some, most, or all of the situations where GP is apparently displayed using small fonts.
UPDATE: It appears that GP 2013 may handle scaling differently than GP 2015. With GP 2013, I'm seeing a completely different mess of font sizes, and the GP window fonts are extremely small. I used the Dynamics.exe.manifest file and it now displays properly.
Before:
After adding the manifest file:
Huge difference.
Steve Endow is a Microsoft MVP
for Dynamics GP and a Dynamics GP Certified IT Professional in Los Angeles.
He is the owner of Precipio Services, which provides Dynamics GP
integrations, customizations, and automation solutions.
Absolutely fantastic result !!!!
ReplyDeleteThank You Steve for posting this finding.. Unfortunately this is only supported apparently with Win 8 & 10.. I tried to implement this on my Win2012 RDP server, the result works as expected on the server side, but the remote published apps don't render with the increased font size on the Win7 side..
ReplyDeleteThank you Steve Endow. You are a legend.
ReplyDeleteI have a client with this issue but did not know how to fix it. I believe their I.T. company made the fonts better. This was a GP2010 installation on a large monitor. I think I will give this a try at their site.
I have just installed GP2016 onto a new Surface Book with Win 10. As you stated, it started correctly, but when I went in again after running utilities, everything had shrunk. The Navigation pane was nearly not visible.
I tried your 2 steps and all is looking great.
Thanks again.
PS I hope Beat can get an answer for RDP as that is the situation at my client.
Hi Geoff,
ReplyDeleteGlad that it worked for you!
Steve
Thanks Steve!
ReplyDeleteThis is much better than having the client change resolution or change the magnification.
Perry
Hi Steve,
ReplyDeleteThanks for the great solution, it has been pending since long time for one of our surface pro user.It's resolved finally.
Sunneil Chy
Anybody find out how to do this in a RDP environment with published applications yet?
ReplyDeletethis worked perfectly on a surface pro
ReplyDeleteThank you Steve! This worked perfectly on Surface Book II. I was a bit panicky when I couldn't read anything on the GP windows! Thanks again!
ReplyDeleteGina Hoener
Thanks! Had this problem on my boss's Windows 10 laptop after a wipe and reload, and couldn't figure out what was happening. This fixed it!
ReplyDelete