VintaSoft Imaging .NET SDK 14.1: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / addFileWithAuthentication Methods / addFileWithAuthentication(string) Property
Syntax Remarks Example BrowserCompatibility SeeAlso
addFileWithAuthentication(string) Метод
Sends an asynchronous request to a server, gets information (with file authentication) about images, which are stored in file on server and adds images to the web document viewer.
Синтаксис
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);

var value; // Type: any

// Parameters
var fileId; // Type: string

value = instance.addFileWithAuthentication(fileId);

Parameters

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

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

Пример

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

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