We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can i set the font for the document?

Thread ID:





99388 May 17,2011 09:00 PM UTC May 19,2011 03:50 AM UTC ASP.NET Web Forms (Classic) 2
Tags: DocIO
Namita Jain
Asked On May 17, 2011 09:00 PM UTC


Is there a way to set the font say Arial for the whole document? I see the property on IWTextRange, but i don't want to go and set the same for individual text.

Please advise.


Namita Jain
Replied On May 18, 2011 08:42 PM UTC

I figured out the way to do that using

IWParagraphStyle paraStyle = (IWParagraphStyle)document.AddParagraphStyle("Normal");
paraStyle.CharacterFormat.FontName = "Arial";
paraStyle.CharacterFormat.FontSize = 9;


Poornima R [Syncfusion]
Replied On May 19, 2011 03:50 AM UTC

Hi Namita,

Thank you for your interest in Syncfusion Products.

We are glad that you have found the answer by yourself.

Please let us know if you have any other questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon