Skip to content

d2a1cbd1 cbb0 320b 5509 c6a3dafba37d

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

TemplateModel.File Property

Additional header content

Gets or sets template file name. To specify a relative path use the character (~).

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 File { get; set; }

VB

Public Property File As String
	Get
	Set

Property Value

Type: String
The template file name. To specify a relative path use the character (~).

Exceptions

 

Exception Condition
ArgumentNullException If value is null.
InvalidPathNameException If value is an invalid path.

Remarks

ITEE Object Element Usage

<Template>
  <File>string</Path>
</Template>

Examples

The following example shows how to use this element. 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">
      <Exporter>
        <Template>
          <File>~\Samples\Input\Doc Templates\DocxSampleTemplate.docx</File>
          <Writer Name="DocxFreeTemplateWriter">
            <Settings FieldPrefix="@@" TrimFields="Yes"/>
          </Writer>
        </Template>
        <Behaviors>
          <Download/>
        </Behaviors>
      </Exporter>
      <Output>
        <File>SampleTemplate</File>
        <Path>~\Samples\Output\Templates</Path>
      </Output>
    </Table>
  </Export>
</Exports>

See Also

Reference

TemplateModel Class
iTin.Export.Model Namespace

Clone this wiki locally