vb.netwinformsprintingdpidymo

Winforms app resolution change when printing Dymo Label on high DPI monitor


I have an issue with an older vb.net winforms app using Dymo Connect SDK. I currently am using Dymo connect SDKversion 1.2.9777.106 although I tried the newest version as well with the same issue.

When a computer with a high DPI monitor prints a label to the Dymo printer, the winforms app flickers for a second, then shrinks down to a different resolution. Then after the printing is complete the fonts all try to re-adjust but from that point forward the fonts are all messed up. For example the text inside a button is partially hidden because it is too big.

If I update the scaling in the Windows display settings to 100% instead of the recommended 125%, it works fine. I don't know if this is a Winforms setting issue, a Dymo connect SDK issue, or something else?

I have tried playing with the AutoScalemode on the form by setting it to DPI, Font, and None, but none of those seem to make a difference.

The only other place on the web I can find any reference to this issue is this random post with no answer: https://learn.microsoft.com/en-us/answers/idea/379404/dymo-label-printing-causes-forms-resolution-change.html

Any ideas?


Solution

  • I had similar issues with the dymo connect SDK and winforms. you can tell the app that the system will handle DPI settings, rather than the application. Open properties of the executable -> Compatibility -> Change high DPI settings -> enable override high DPI scaling -> select system