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.

How can i set the font for the document?

Thread ID:

Created:

Updated:

Platform:

Replies:

99388 May 17,2011 05:00 PM May 18,2011 11:50 PM ASP.NET Web Forms (Classic) 2
loading
Tags: DocIO
Namita Jain
Asked On May 17, 2011 05:00 PM

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 04:42 PM

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 18, 2011 11:50 PM

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.

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.

;