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

Grid to Word.

Thread ID:

Created:

Updated:

Platform:

Replies:

64387 Jul 19,2007 10:11 AM UTC Jul 21,2007 02:51 AM UTC WinForms 1
loading
Tags: DocIO
sravan
Asked On July 19, 2007 10:11 AM UTC

hi,
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 21, 2007 02:51 AM UTC


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;


[C#]

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.

http://websamples.syncfusion.com/samples/DocIo.Windows/F-64389/main.htm

Please let me know for further help.

Regards,
Sarath

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

;