This project has moved and is read-only. For the latest updates, please go here.

Additional question

Jan 23, 2016 at 9:58 AM
How can I identify type of object from a variable declared as NetOffice.AccessApi.Form?
For example for Microsoft.Office.Interop.Access.From I can use TypeName.
If TypeName(frm) = "Form_ObjectName" then Form, if TypeName(frm) = "T_ObjectName" then Table, if TypeName(frm) = "ObjectName" (or "_ObjectName") then Query.
Only by using UnderlyingObject?

Jan 24, 2016 at 10:12 PM
Hello Serge,

Each instance from NetOffice has the property string UnderlyingTypeName{get;}
You may didnt see that because its marked with the [EditorBrowsable(EditorBrowsableState.Never) attribute
to avoid confusing developers.

Moreover you have:

string UnderlyingComponentName{get;}

string FriendlyTypeName{get;}

Jan 25, 2016 at 8:04 AM
Hello Sebastian,

thank you for your quick reply.