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.
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:

Created:

Updated:

Platform:

Replies:

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

Hi

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.

Thanks
-Namita


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;

Thanks


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.

Regards,
Poornima



CONFIRMATION

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.

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

;