Skip to content

a716ed7a 5602 84fa 095a ab7cddef2048

Fernando Garcia edited this page May 8, 2018 · 1 revision

ExporterModel Class

Additional header content

Defines the type of exporter to use and their behavior.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(ExporterModel)
    iTin.Export.Model.ExporterModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[SerializableAttribute]
public class ExporterModel : BaseModel<ExporterModel>

VB

<SerializableAttribute>
Public Class ExporterModel
	Inherits BaseModel(Of ExporterModel)

The ExporterModel type exposes the following members.

Constructors

 

Name Description
Public method ExporterModel Initializes a new instance of the ExporterModel class
  Back to Top

Properties

 

Name Description
Public propertyCode example Behaviors Gets or sets collection of writer behaviors.
Public property Current Gets or sets a reference to the exporter to be used for export.
Public property ExporterType Gets a value indicating data field type.
Public property IsDefault Gets a value indicating whether this instance contains the default. (Overrides BaseModel.IsDefault.)
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
  Back to Top

Methods

 

Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetStaticBindingValue Gets the static binding value by reflection. (Inherited from BaseModel(T).)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveToFile(String) Saves to file. (Inherited from BaseModel(T).)
Public method SaveToFile(String, Exception) Serializes current BaseModel object into file (Inherited from BaseModel(T).)
Public method Serialize Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).)
Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

Belongs to: Table. For more information, please see TableModel.
ITEE Object Element Usage

<Exporter>
  <Template/> | <Writer/> |  <Xslt/>
  <Behaviors/>
</Exporter>

Elements  

Element Description
Current The type of exporter you will use the engine.
Behaviors Collection of writer behaviors. Each element is a writer behavior, it execute after export.
  The following example defines an exporter of type Writer that contains two behaviors.
The Download behavior indicates to engine that begin download to the file if we are in a web environment.
The TransformFile behavior indicates to the engine that we want to save the transform xslt file and the transformed file (in this case the excel sheet).

XML

<?xml version="1.0" encoding="utf-8"?>

<Exports xmlns="http://schemas.iTin.com/export/engine/2013/configuration">
  <Export Name="Test" Current="Yes">
    <Description><Sample Export</Description>
    <Table Name="R740D01"
              Location="1 1"
              AutoFilter="Yes"
              AutoFitColumns="Yes"              
              Alias="Table alias">
      <Exporter>
        <Writer Name="Spreadsheet2003TabularWriter"/>
        <Behaviors>
          <Download/>
          <TransformFile Save="Yes"/>
        </Behaviors>
      </Exporter>
       ...
    </Table>
     ...
  </Export>
</Exports>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally