Set document margins when converting html to word

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    19 posts
    Member since:
    Mar 2015

    Posted 22 Aug 2016 Link to this post

    I need help setting document margins when convert html to word using the following technique.

    string html = "<p>hello world!</p>";
    HtmlFormatProvider provider = new HtmlFormatProvider();
    RadFlowDocument document = provider.Import(html);

    I tried using the following with no luck

    PageMargins = new Telerik.Windows.Documents.Primitives.Padding(30, 0, 0, 5);

    Are there any examples showing what I require?

    Thank you


  2. Tanya
    Tanya avatar
    884 posts

    Posted 24 Aug 2016 Link to this post

    Hello Andy,

    I just posted a reply to this question in the other forum thread. Please, find it at

    Telerik by Progress

Back to Top