TemplatePackage AddFile Method (String, String)
Add a file to the package.

Namespace: HotDocs.Sdk
Assembly: HotDocs.Sdk (in HotDocs.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public string AddFile(
	string filePath,
	string internalName
)

Parameters

filePath
Type: OnlineSystem String
The full path of the file to be added. E.g. "D:\files\template.rtf".
internalName
Type: OnlineSystem String
The name within the package. E.g. "template.rtf" or "images/icon.png".

Return Value

Type: OnlineString
The internal name used. E.g. "template.rtf" or "images/icon.png". This name can be used to be shown to the user and can be used to extract a file again.
See Also