Skip to content

807ae7b4 47f0 c951 e7e0 76a5738cf325

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

PieceModel.Name Property

Additional header content

Gets or sets the name of the piece.

Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public string Name { get; set; }

VB

Public Property Name As String
	Get
	Set

Property Value

Type: String
Name of the piece. Are only allow strings made ​​up of letters, numbers and following special chars '_ - # * @ % $'.

Exceptions

 

Exception Condition
ArgumentNullException If value is null.
InvalidIdentifierNameException If value not is a valid identifier name.

Remarks

ITEE Object Element Usage

<Piece Name="string" .../>

Compatibility table with native writers.

Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
X X X X
A X value indicates that the writer supports this element.

Examples

Suppose we have the following input data: XML

<?xml version="1.0" encoding="utf-8"?>
<ARD740>
  <R740D01 _x0023_LINE="10" SFLDTA="4 60027           27        55        75        13   20/02/13 " ... />
  <R740D01 _x0023_LINE="20" SFLDTA="4 61535            3                   2             08/03/13 " ... />
  ...
  ...
</ARD740>

Now we create the collection of pieces:

XML

<Pieces Name="SFLDTA_Pieces" Reference="SFLDTA">
  <Piece Name="DCALL" From="0" Lenght="2"/>
  <Piece Name="NOCOL" From="2" Lenght="16" Trim="Yes" TrimMode="All"/>
  <Piece Name="SHOP" From="18" Lenght="10"/>
  <Piece Name="SIT" From="28" Lenght="10"/>
  <Piece Name="PIK" From="38" Lenght="5"/>
  <Piece Name="PKG" From="48" Lenght="5"/>
  <Piece Name="DUEDATE" From="53" Lenght="9" Trim="Yes" TrimMode="All"/>
</Pieces>

See Also

Reference

PieceModel Class
iTin.Export.Model Namespace

Clone this wiki locally