<< Click to Display Table of Contents >>
Customizing execution options
When you execute HTML5 Viewer, you may need to customize the way the viewer executes depending on the system environment.
For example, files are bound together on the client-side and reports are generated for printing on the server-side.
To use this feature, enter the start_ozjs function on the web page in which HTML5 Viewer is executed as follows.
... function SetOZParamters_OZViewer(){ ... } var opt = []; opt["OptionKey"] = Value; start_ozjs("OZViewer","http://127.0.0.1:8080/ozrviewer/", opt); ... |
The configurable OptionKeys are as follows.
mstyle
opt["mstyle"] = true;
To run in mobile UI style regardless of the environment in which the HTML5 viewer is run, set the mstyle option value to true.
rendering_mode
opt["rendering_mode"] = "svg";
Renders HTML5JS Viewer in SVG type. If you use HTML5JS Viewer to generate a report containing input components, then the entire page displayed on the screen is updated whenever an input component value is changed. This may delay the page renewal rate depending on the number of input components. When generating a report that has this problem, set the rendering_mode option to svg.
rendering_text_mode
opt["rendering_text_mode"] = "word";
opt["rendering_text_mode"] = "word_rtl";
When using HTML5 Viewer to generate a report that contains superscripts or subscripts in Thai, Bengali, and Arabic, the subscripts can be positioned incorrectly. When generating a report that has this problem, set the rendering_text_mode option to word for Thai and Bengali, and to word_rtl for Arabic. Note that when using this option, the Character Spacing feature cannot be used.
save_exportfrom
opt["save_exportfrom"] = {"pdf":"server"};
opt["save_exportfrom"] = {"pdf":"scheduler"};
If a report uses a web or special font, then the font is shown in the preview screen of HTML5JS Viewer. However, since HTML5JS Viewer has the limitation of not containing the fonts when saving the report in PDF format, a different font may be applied. When saving a report in PDF format that has this problem, set the save_exportfrom option to {"pdf":"server"} or {"pdf":"scheduler"}. To use the save_exportfrom option, go to the OZ server configuration file > spmgr.properties file and set the svgviewerbind_sessionkey option to the session key value. If you are setting these parameter values to a server, then start the OZ Java server. If you are setting them to a scheduler, start the OZ Scheduler. If you are not using this feature, then leave the svgviewerbind_sessionkey option empty.
print_exportfrom
opt["print_exportfrom"] = "server";
opt["print_exportfrom"] = "scheduler";
When printing a report using HTML5JS Viewer, the client PC that executed the viewer generates a PDF file for printing and then launches a PDF print window. If a report uses a web or special font, then the font is shown on the preview screen. However, since HTML5JS Viewer has the limitation of not containing the fonts when generating the report in PDF format, a different font may be applied. Also, when printing large reports, you may experience slow response speed while generating a PDF file on the client PC. When printing a report that has this problem, set the print_exportfrom option to server or scheduler. To use the print_exportfrom option, go to the OZ server configuration file > spmgr.properties file and set the svgviewerbind_sessionkey option to the session key value. If you are setting these parameter values to a server, then start the OZ Java server. If you are setting them to a scheduler, start the OZ Scheduler. If you are not using this function, then leave the svgviewerbind_sessionkey option empty. Also, when using this option, the Copies and Change paper size settings cannot be used.
print_use_duplexprintbyreport
opt["print_use_duplexprintbyreport"] = true;
When printing multiple reports on both sides of the paper, set the print_use_duplexprintbyreport option value to true to print the first page on the front side.
iframe_dialog
opt["iframe_dialog"] = true;
If you are executing HTML5 Viewer using an iframe tag, then iframe_dialog must be set to true. If you execute the viewer without setting this option, then the Save option window may be cut off depending on the browser that executed the viewer. If you want to use the iframe_dialog option, the parent web page using the iframe tag must include the following files: jquery-2.0.3.min.js, jquery-ui.css, and jquery-ui.min.js.
use_mstyle_pagenumber_display
opt["use_mstyle_pagenumber_display"] = true;
If you execute HTML5 Viewer on mobile, the page number window is displayed automatically. However, if you execute it on PC, the page number window is not displayed. To display the page number window even when running in a PC environment, set the value of the use_mstyle_pagenumber_display option to true.
use_repository_cache
opt["use_repository_cache"] = true;
If you create multiple child reports from the same report file when using the multiple reports feature in HTML5JS Viewer, then unnecessary network load occurs because the file needs to be retrieved from the server each time. To resolve this, set use_repository_cache option to use_repository_cache.
attachment_dialog
opt["attachment_dialog"] = false;
If you execute HTML5 Viewer on mobile, set the value of the attachment_dialog option to false in order to disable AttachmentButton’s combine photos feature.
signpad_dialog_fullscreen
opt["signpad_dialog_fullscreen"] = "viewer";
opt["signpad_dialog_fullscreen"] = "browser";
When executing the signpad in a dialog format in reports generated by HTML5JS Viewer, set signpad_dialog_fullscreen to viewer to launch the viewer in full screen, and set signpad_dialog_fullscreen to browser to launch the web browser in full screen.