Help...Urgent..!!!

  • Thread starter Ramaprasad Upadhyaya
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top