Grid to Word.

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.




1 Reply

SK Sarath Kumar G Syncfusion Team 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

Loader.
Up arrow icon