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.
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.
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