WinForms RDLC Chart Object, Sizes to Screen Zoom level on print, bug, setting or can be fixed with more code?
-
I have a Win Forms App that I authored with reports using RDLC GUI design. I deployed an upgrade last week after the customer bought new color laser printers and noticed that the charts on the report printed larger than the other text objects. At first I thought it was the printers, but testing showed all the printers did the same thing. Then I tried multiple computers, and they all printed different. Finally isolated the issue down to the Windows Zoom level. The first computer had a zoom level of 130%, and my computer was set to 100% when I developed the report. So I'm scratching my head on this, and concluded that the chart objects are sizing based on the zoom level of the desktop. The GUI part, where you view the report on the report canvas sizes correct, and if you select PDF and print, it prints correct. But if you choose a PDF printer, the chart objects size to the zoom level of the desktop. Wondering if anybody else has noticed or dealt with this, and how you fixed it.
If it ain't broke don't fix it Discover my world at jkirkerx.com
-
I have a Win Forms App that I authored with reports using RDLC GUI design. I deployed an upgrade last week after the customer bought new color laser printers and noticed that the charts on the report printed larger than the other text objects. At first I thought it was the printers, but testing showed all the printers did the same thing. Then I tried multiple computers, and they all printed different. Finally isolated the issue down to the Windows Zoom level. The first computer had a zoom level of 130%, and my computer was set to 100% when I developed the report. So I'm scratching my head on this, and concluded that the chart objects are sizing based on the zoom level of the desktop. The GUI part, where you view the report on the report canvas sizes correct, and if you select PDF and print, it prints correct. But if you choose a PDF printer, the chart objects size to the zoom level of the desktop. Wondering if anybody else has noticed or dealt with this, and how you fixed it.
If it ain't broke don't fix it Discover my world at jkirkerx.com
After hours of working with the RDLC, making the charts the size of postage stamps, looking at the rectangle containers, upgrading the Nuget packages for Report Writer. Changing the Framework version, trying it on VS 2019, and on and on. And even working with the printer drivers. It's the Monitor. I bought a set of new Dell U2719, and so did my customer. Mine are set at 100% zoom, and his 125% zoom. I used one of my old monitors, a Dell U2412 as a 3rd monitor. If I set my U2719's to 125% zoom, and my U2412 to 125% zoom, and print with my winform app on the U2719, the chart objects don't scale. Then if I drag my app over to the U2412 at 125% and print, the chart objects print to scale. Go figure, just dragging the app over to my 3rd monitor prints correct. Drag the app back to one of the first 2 monitors prints incorrect. I think Dell needs to take a look into this on the U2719. And I know if I call Dell and create a support ticket, they will tell me to look in my spam folder and see if that fixes it. Oh Well, it's not my code at least. And it's not Microsoft.
If it ain't broke don't fix it Discover my world at jkirkerx.com