Answer the question
In order to leave comments, you need to log in
How to print Grid to a4 size (WPF)?
There is a Grid c with a size of 1570x1109 On a computer with windows 10, it is printed on the entire sheet, and on windows 7, only part of the grid is printed as the scale increases.
And on both computers the same resolution, monitor and printer is the same. How to make the scale to be the same under windows 7. I thought it was due to different dpi in different versions of windows. I tried to look through the registry and different winapi, it shows that 96 is there and there. It is not clear why this happens.
The following code is used for printing.
PrintDialog dlg = new PrintDialog();
dlg.PrintVisual(grid, "Title");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question