Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
printpreviewdocument page margins
posted

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.

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children