ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   COM Exception when read Font.FontStyle property of Style object (https://www.excelbanter.com/excel-programming/418539-com-exception-when-read-font-fontstyle-property-style-object.html)

Raja

COM Exception when read Font.FontStyle property of Style object
 
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(Strin g 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


All times are GMT +1. The time now is 01:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com