How to Change Page Margin before Print

2 posts, 1 answers
  1. Feri
    Feri avatar
    2 posts
    Member since:
    Mar 2016

    Posted 01 Mar Link to this post

    How can I change page margins before radGridView.PrintPreview()?
  2. Answer
    Stefan avatar
    2891 posts

    Posted 01 Mar Link to this post

    Hi Feri,

    Thank you for writing.

    To do that you should utilize the RadPrintDocument API:
    RadPrintDocument doc = new RadPrintDocument();
    doc.Margins.Left = 200;
    radGridView1.Print(false, doc);

    More information on the matter is available here:

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top