ImportNamedDataSource Tag

ClosedDescription

Specifies the .btds file from which named data sources are imported.

ClosedSyntax

<ImportNamedDataSource OverwriteIfExists=true|false>[Full Path to .btds file]</ImportNamedDataSource>

The supported attributes include the following.

Attribute

Required/Optional

Description

OverwriteIfExist

Optional

Determines whether to overwrite an existing file. By default, this is set to false.

  • True: The current data source will be overwritten with the imported named data source.

  • False: data sources remain unchanged.

ClosedParent Tags

<FormatSetup>

ClosedRemarks

<ImportNamedDataSource> is an optional tag that is used with the <FormatSetup> command.

ClosedExample

This example demonstrates the <ImportNamedDataSource> tag importing a .btds file. If a named data source with the same name already exists, it is not overwritten; other named data sources with different names are still imported.

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

<XMLScript Version="2.0" Trusted="true">

<Command>

<FormatSetup>

<Format SaveAtEndOfJob="true">full path\Document1.btw</Format>

<ImportNamedDataSource OverwriteIfExists="false">full path\PredefinedDataSource.btds</ImportNamedDataSource>

</FormatSetup>

</Command>

</XMLScript>

Create .btds files by exporting named data sources in BarTender.

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and later versions)