All of the properties must be marked with ExportMember attribute. If not, these properties not added to the excel output. Attribute inherits ExportAttributesBase class which is inherits System.Attribute class. This base class provides some style properties to attribute. All of the ExportMember attributes inherits all styles which is defined on Export Entity Attribute and not defined on it.

Not Inherited Properties
Inherited Properties
Example:
<ExportMember(Order:=0, HAlign:=XlHAlign.xlHAlignLeft, BackgroundColor:="#eea")>
Public Property ContactID() As Integer

Last edited Apr 19, 2012 at 10:54 PM by cannonball, version 1

Comments

No comments yet.