COM Exception when read Font.FontStyle property of Style object

R

Raja

I got an Exception after reading Font.FontStyle property of Style Object.

here are the details of the Exception:
Type : System.Runtime.InteropServices.COMException
Message : Unable to get the FontStyle prop0erty of the Font class
ErrorCode : -2146827284
Trace:
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes,
MessageData& msgData)
at Microsoft.Office.Interop.Excel.Font.get_FontStyle()

Why I'm getting this exception?

Regards,
Raja
 

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