<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html style="height:100%"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="UTF-8" /> <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="/oz80/ozhviewer/ui.dynatree.css" type="text/css"/> <script type="text/javascript" src="/oz80/ozhviewer/jquery.dynatree.js" charset="utf-8"></script>
<!-- canvas¹æ½ÄÀº OZJSViewer.js, ¼¹ö¿¡¼ ¹ÙÀεùµÇ´Â svg¹æ½ÄÀº OZJSSVGViewer.js ÀÌ¿ë --> <script type="text/javascript" src="/oz80/ozhviewer/OZJSViewer.js" charset="utf-8"></script>
<script language="JavaScript"> function OZProgressCommand_OZViewer(step, state, reportname) { if(step == 4 && state == 2) { // º¸°í¼ ¹ÙÀεù ¿Ï·á console.log("º¸°í¼ À̸§ : " + reportname); } }
</script> </head> <body style="width:98%;height:98%"> <div id="OZViewer" style="width:98%;height:98%"></div>
<script type="text/javascript" >
function SetOZParamters_OZViewer(){ var oz; oz = document.getElementById("OZViewer");
// [±âº» Æз¯¹ÌÅÍ] oz.sendToActionScript("connection.servlet","http://127.0.0.1/oz80/server"); // ¿ÀÁî¼¹ö URL oz.sendToActionScript("connection.reportname","test1.ozr"); // º¸°í¼ À̸§
// [ÆûÆз¯¹ÌÅÍ Àü´Þ] oz.sendToActionScript("connection.pcount","2"); // ÆûÆз¯¹ÌÅÍ °³¼ö oz.sendToActionScript("connection.args1","reportNo=1000"); // ù¹ø° ÆûÆз¯¹ÌÅÍ À̸§=°ª oz.sendToActionScript("connection.args2","title=Á¦¸ñ"); // µÎ¹ø° ÆûÆз¯¹ÌÅÍ À̸§=°ª
// [ODI Æз¯¹ÌÅÍ Àü´Þ] oz.sendToActionScript("odi.odinames","test"); // odi À̸§ oz.sendToActionScript("odi.test.pcount","2"); // odi Æз¯¹ÌÅÍ °³¼ö oz.sendToActionScript("odi.test.args1","yyyy=2022"); // odi ù¹ø° Æз¯¹ÌÅÍ À̸§=°ª oz.sendToActionScript("odi.test.args2","mm=09"); // odi µÎ¹ø° Æз¯¹ÌÅÍ À̸§=°ª
// [ºä¾îÄܼÖÁ¤º¸] oz.sendToActionScript("information.debug","true"); // ÄܼÖÁ¤º¸(Ctrl+Z) Ç¥½Ã ¿©ºÎ
// [PDF ÆùÆ®Æ÷ÇÔ] oz.sendToActionScript("pdf.fontembedding","true"); // PDF ÆùÆ®Æ÷ÇÔ (±Û²Ã ±úÁö´Â°Í ¹æÁö) oz.sendToActionScript("pdf.fontembedding_subset","true"); // ÆùÆ®ÀÇ ¼ºê¼ÂÀ» ÀúÀåÇÒÁö ¿©ºÎ
// [Åø¹Ù ¼³Á¤] oz.sendToActionScript("toolbar.first","true"); // ùÆäÀÌÁö À̵¿ ¾ÆÀÌÄÜ Ç¥½Ã oz.sendToActionScript("toolbar.last","true"); // ¸¶Áö¸·ÆäÀÌÁö À̵¿ ¾ÆÀÌÄÜ Ç¥½Ã
// [ÀúÀå ¿É¼Ç] oz.sendToActionScript("export.format","pdf"); // ÀúÀåÆ÷¸Ë oz.sendToActionScript("export.filename","test.pdf"); // ÆÄÀϸí oz.sendToActionScript("export.mode","silent"); // ¼³Á¤Ã¢ º¸¿©ÁÙÁö ¿©ºÎ
// [±âŸ] oz.sendToActionScript("viewer.useprogressbar","false"); // ÇÁ·Î±×·¡½º¹Ù º¸¿©ÁÙÁö ¿©ºÎ // [À̺¥Æ®] oz.sendToActionScript("viewer.progresscommand", "true"); // º¸°í¼ »ý¼º ´Ü°èº°·Î ¹ß»ýÇÏ´Â À̺¥Æ® »ç¿ë¿©ºÎ
// [ÆäÀÌÁö Ç¥½Ã] oz.sendToActionScript("viewer.pagedisplay","continuous"); // ÆäÀÌÁö Ç¥½Ã ¿É¼Ç oz.sendToActionScript("viewer.pagenavigate_by_scroll","true"); // ¸¶¿ì½º ÈÙÀ» À§/¾Æ·¡·Î ¿òÁ÷ÀÏ ¶§ ȸéÀÌ ÆäÀÌÁö ½ÃÀÛ/³¡¿¡ À§Ä¡Çϸé ÆäÀÌÁö¸¦ ÀÌÀü/´ÙÀ½ ÆäÀÌÁö·Î À̵¿ ¿©ºÎ ¼³Á¤ oz.sendToActionScript("viewer.viewmode","normal"); // º¸°í¼ º¸±â ¸ðµå
return true; }
var opt = []; opt["print_exportfrom"] = "server"; // Àμâ½Ã ¼¹ö·ÎºÎÅÍ PDF »ý¼º opt["save_exportfrom"] = {"pdf" : "server"}; // ÀúÀå½Ã ¼¹ö·ÎºÎÅÍ PDF »ý¼º start_ozjs("OZViewer","/oz80/ozhviewer/", opt); // ºä¾î ½ÇÇà //start_ozjs("OZViewer","/oz80/ozhviewer/");
</script> </body> </html> |