VintaSoft Imaging .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / openFileWithAuthentication Methods / openFileWithAuthentication(string) Property
Syntax Remarks Example BrowserCompatibility SeeAlso
В этом разделе
openFileWithAuthentication(string) Метод
В этом разделе
Отправляет асинхронный запрос на сервер, получает информацию (с аутентификацией файла) об изображениях, которые хранятся в файле на сервере, очищает веб просмотрщик документов и добавляет изображения в веб просмотрщик документов.
Синтаксис
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);

var value; // Type: any

// Parameters
var fileId; // Type: string

value = instance.openFileWithAuthentication(fileId);

Parameters

fileId
Строка, представляющая идентификатор файла.
Ремарки

Метод вызывает событие fileOpened, если файл открыт успешно.

Пример

ThisJavaScriptcodeshowshowtoopenfile,whichisstoredonserverandhavepassword,inwebdocumentviewer:
                  // open file with authentication - the web document viewer will show the password dialog to enter the password to a file if file needs authentication
                  docViewer1.openFileWithAuthentication("pdfDocumentWithPassword.pdf");

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