Y
Y
YuyukoSaigeji2017-06-08 12:52:40
JavaScript
YuyukoSaigeji, 2017-06-08 12:52:40

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.
cdcae67f02464c6685b8b4358d41c33f.png
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");

I do not need rescaling for different printers, the main thing is that the printer of a particular model prints with the same scale.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2017-06-08
@d-stream

Maybe look in the direction of reporting services right away?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question