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

var value; // Type: any

// Parameters
var fileId; // Type: WebFileInfoJS

value = instance.openFile(fileId);

Parameters

fileId
Экземпляр класса WebFileInfoJS.
Исключения
ИсключениеОписание
Выбрасывается, если аргумент имеет неправильный тип.
Ремарки

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

Пример

ThisJavaScriptcodeshowshowtoopenfile,whichisstoredonserveranddoesnothavepassword,inwebdocumentviewer:
                  // open file without authentication
                  docViewer1.openFile(new Vintasoft.Shared.WebFileInfoJS("multipageFile.tiff", ''));

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