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.

Grid to Word.

Thread ID:





64387 Jul 19,2007 06:11 AM Jul 20,2007 10:51 PM Windows Forms 1
Tags: DocIO
Asked On July 19, 2007 06:11 AM

i am trying to capture the gridcontrol font
to the word .(i want to copy the gridcontrol to be printed in word as it is).but when assining-----------
paragraph.CharacterFormat.Font = this.gridControl.Font;-------
i could not carry font italic and bold to true.only font is getting carried.
any one can plz help me.

Sarath Kumar G [Syncfusion]
Replied On July 20, 2007 10:51 PM

Hi Sravan,

Thank you for your interest in Syncfusion products.

I am afraid I am unable to reproduce the issue. I was able to set the font and font style of grid control to the word document. This can be achived by using

the following code snippet;


IParagraphStyle style = null;
style.CharacterFormat.Font = new Font(this.gridControl1.Font.Name, this.gridControl1.Font.Size, this.gridControl1.Font.Style);

Here is the sample for your reference.


Please let me know for further help.



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.