Skip to main content
Windward

How to Import a Template or File Into Another Template Using an Import Tag

Overview

If you want to insert an external file into your template, you will need to make use of the Import Tag. This article will discuss how to import a file or template into a master template.

 

Using the Import Tag

The Import Tag allows you to insert the content of an external file into your template. The embedded document may be an image, a text file, a PDF file, or even another template. For example, you might want to import a cover sheet or company logo.

 

Your data source must contain the location (either a URL or file path) of the content to import, not the actual content itself. For example, with HTML and images, the actual HTML tags or image must not be in the data source. If the actual content is in the data source, you would use the out tag instead.

 

Keep in mind that you are importing the actual content of the external file into your report. Therefore your import tag must point to the data source value with the specified external file’s path or URL (eg: “'C:\users\smithj\documents\filename” or “'http://www.sitename.com/filename”)

  • Note that when using a filepath or URL directly in the query pane, you'll need to include a  ' at the beginning. Here's why!

 

Importing a Tagged Template

If the subdocument you are importing contains Windward Tags, make sure that the data source used in the subdocument is connected to both the subdocument as well as the main template.