This is a migrated thread and some comments may be shown as answers.

Set document margins when converting html to word

1 Answer 198 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 23 Aug 2016, 04:39 AM

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

Andy

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 24 Aug 2016, 11:09 AM
Hello Andy,

I just posted a reply to this question in the other forum thread. Please, find it at http://www.telerik.com/forums/set-document-margins-when-converting-html-to-word.

Regards,
Tanya
Telerik by Progress

Tags
WordsProcessing
Asked by
Andrew
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or