VintaSoft Imaging .NET SDK 14.1: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / openFile Methods / openFile(string) Property
Syntax Exceptions Remarks Example BrowserCompatibility SeeAlso
openFile(string) Метод
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: string

value = instance.openFile(fileId);

Parameters

fileId
Строка, представляющая идентификатор файла, хранящегося на сервере, или URL-адрес файла.
Исключения
ИсключениеОписание
Выбрасывается, если аргумент имеет неправильный тип.
Ремарки

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

Пример

ThisJavaScriptcodeshowshowtoopenfile,whichisstoredonserveranddoesnothavepassword,inwebdocumentviewer:
                  // open file without authentication
                  docViewer1.openFile("multipageFile.tiff");

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