Hello,
I am using printpreviewcontrol to show preview of grid.
So document property of ultraprintpreview control is set to the grid.
This displays the grid very well.. but I want to reduce the left and top margins.
I tried following : ultragridprintdocument.page.margins.top = 0
ultragridprintdocument.page.margins.left = 0
But this did not work.Any ideas?
Thank you.
I don't think there is any way around that. I am pretty sure that the printer itself has a certain physical limitation regarding how close to the edge of the page it can print. It also depends on the printer driver. But you really don't have any control over that, as far as I know.
Hi Mike,
I tried 200 and it works. So as you said, I am bumping into minimum limitation.
Is there any other way for acheiving the same?
Here is the screenshot of the thing :- I am trying to reduce the distance marked in Red.
So I can see print document in the center of the printpreview control.
Thank you very much
Just as a test, does it work if you increase the size of the margins. Say, to 200?
There's a certain minimum on the margins based on the printer drivers, so 0 will probably never work. If 200 works, and 0 does not, then I think you are probably just bumping into that minimum limitation. If 200 does not work, then you may just be using the wrong property for what you want.