Viewer In HTML

Learn how to integrate the OZ viewer in the application and open e-Form.

Viewer Types

Category
Type
Description

Desktop

ActiveX

The viewer for IE browser. Downloaded and updated on the client automatically.

Desktop or Mobile

HTML5JS (Canvas)

Downloaded in the Temporary Internet Files folder on the client.

eForm is rendered by the client.

For details refer to HTML5 Viewer Types

HTML5SVG

Downloaded in the Temporary Internet Files folder on the client.

eForm is rendered at the server-side by OZ Server and OZ Scheduler.

For details refer to HTML5 Viewer Types

Mobile

Android

Viewer library to be embedded in the Android project

iOS

Viewer library to be embedded in the Xcode project

UWP

Viewer library to be embedded in the Visual Studio, C#, C++ project

Embedding HTML5JS Viewer in Your HTML

1. Create a file customer.html under webapps/training/company_id/user_id/.

2. Import js and CSS files needed for the HTML5JS Viewer.

<!DOCTYPE html>
<html style="height:100%">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<!-- HTML5 Viewer references-->
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" type="text/css"/>
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="/html5viewer/ui.dynatree.css" type="text/css"/>
<script type="text/javascript" src="/html5viewer/jquery.dynatree.js" charset="utf-8"></script>
<script type="text/javascript" src="/html5viewer/OZJSViewer.js" charset="utf-8"></script>
</head>

3. Declare an OZ Viewer object using the <div> tag.

4. Set parameters for server connection and OZR file location with SetOZParamters_OZViewer().

5. Sart the viewer with start_ozjs().

6. Save the file and open it with a browser.

http://localhost:8080/training/forcs/john.kim/customer.html

Using PDF

Example

Mobile UX

For mobile devices, you can use jQuery mobile. Just add references below.

And the function start_ozjs() must be called with the 3rd argument.

Example

Last updated

Was this helpful?