R
Ramaprasad Upadhyaya
Hi Friends,
I want to convert System.Drawing.color to Word.wdColor.
WHen i tried to cast it is is telling "Cannot convert
type 'System.Drawing.Color' to 'Word.WdColor'".
My requirement is -
1. when i click on button ,it will open color dialogbox.
2. I will select some color and on click of Ok in color
dialog, the selected color should be applied to the
selected font of the word document.
In this process i am setting the font color for the Range
as follows-
rang.Font.Color=(Word.WdColor)MyDialog.Color.ToArgb();
Here,
rang->Range Object
MyDialog->Color dialog object
Just i want font color functionality of the word.
If u know the way to do that and any other better ways
plese reply..
Waiting for reply,
Ramaprasad Upadhyaya
I want to convert System.Drawing.color to Word.wdColor.
WHen i tried to cast it is is telling "Cannot convert
type 'System.Drawing.Color' to 'Word.WdColor'".
My requirement is -
1. when i click on button ,it will open color dialogbox.
2. I will select some color and on click of Ok in color
dialog, the selected color should be applied to the
selected font of the word document.
In this process i am setting the font color for the Range
as follows-
rang.Font.Color=(Word.WdColor)MyDialog.Color.ToArgb();
Here,
rang->Range Object
MyDialog->Color dialog object
Just i want font color functionality of the word.
If u know the way to do that and any other better ways
plese reply..
Waiting for reply,
Ramaprasad Upadhyaya