VintaSoft Imaging .NET SDK 14.1: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / downloadFile Methods / downloadFile(string) Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
downloadFile(string) Метод
Downloads a file from server.
Синтаксис
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);

var value; // Type: any

// Parameters
var fileId; // Type: string

value = instance.downloadFile(fileId);

Parameters

fileId
Строка, представляющая идентификатор файла, который необходимо загрузить.
Исключения
ИсключениеОписание
Выбрасывается, если аргумент имеет неправильный тип.
Пример

ThisJavaScriptcodeshowshowtodownloadaspecifiedfilefromserver:
                  // download a file from server
                  docViewer1.downloadFile("pdfDocumentWithPassword.pdf");

Совместимость с веб браузерами
9
5
11
5
Смотрите также