addFileWithAuthentication(string) Метод
В этом разделе
Отправляет асинхронный запрос на сервер, получает информацию (с аутентификацией файла) об изображениях, которые хранятся в файле на сервере, и добавляет изображения в веб просмотрщик документов.
Синтаксис
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);
var value; // Type: any
// Parameters
var fileId; // Type: string
value = instance.addFileWithAuthentication(fileId);
function addFileWithAuthentication(
: string
) : any;
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");
Совместимость с веб браузерами
Смотрите также