Version

DownloadName Property

Filename given to the document downloaded to the browser during export.
Syntax
'Declaration
 
Public Property DownloadName As String
public string DownloadName {get; set;}
Remarks

Use this property to customize the filename given to the document file when it is downloaded by the browser. If no filename is provided, the filename will be set to a default filename like document.pdf.

The filename must be a legal file name on the client's operating system and must end with the right file extension for the type of file that is being exported. If no file extension is provided, one will be automatically added based on the Format of the document.

The filename should not contain any path information because the place where the user will be prompted to save the file will depend on the browser. Path characters like slashes will be removed from the filename.

It is recommended that the download filename be dynamically determined by developers' web applications, because some versions of the Microsoft Internet Explorer browser may fail to open the spreadsheet as expected if a file of the same name already exists within the end user's Temporary Internet Files cache.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also