VintaSoft Imaging .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / downloadFile Methods / downloadFile(string) Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
В этом разделе
downloadFile(string) Метод
В этом разделе
Загружает файл с сервера.
Синтаксис
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
Смотрите также