I managed to fix it.
I wasnt scaling pixels for printer accurately enough.
This fixed it. A factor of 10 better.
e.Graphics.ScaleTransform(100f / 1000, 100f / 1000);
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am printing some graphics in c# and wpf.
I can set up the printer ok and print out the graphics.
I can print in 300 dpi and 600 dpi by setting printer resolution fine.
If I set printer resolution to 9600 the print routine reverts to 600 dpi x and 600 dpi y.
According to printer datasheet it should go up to 9600 x and y.
The resolution is being set ok and comes back as -4 which is correct for 9600.
-1 gives 300 dpi and -2 gives 600 dpi.
I managed to fix it.
I wasnt scaling pixels for printer accurately enough.
This fixed it. A factor of 10 better.
e.Graphics.ScaleTransform(100f / 1000, 100f / 1000);