* °³¿ä
ApplicationÅøÀÎ MiPlatform¿¡¼ OZ ReportViewer¸¦ Ãß°¡ÇÏ¿© º¸°í¼¸¦ º¸¿©ÁÖ´Â ¹æ¹ýÀ» ¼³¸íÇÕ´Ï´Ù.
* »ó¼¼ ¼³¸í
1. OZ Viewer ¼³Ä¡
À¥ºê¶ó¿ìÀú·Î ¾Æ·¡ htmlÀ» È£ÃâÇÏ¿© ZTransferX.cabÀ» ÅëÇؼ ÇÊ¿äÇÑ ¸ðµâÀ» ¼³Ä¡ÇÕ´Ï´Ù.
(ozinstall.html)
<OBJECT width = "0" height = "0" ID="ZTransferX" CLASSID="CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67" codebase="http://localhost:8081/ypk/ozrviewer/ZTransferX.cab#version=2,0,1,7"> <PARAM NAME="download.Server" VALUE="http://localhost/ypk/ozrviewer/">' <PARAM NAME="download.Port" VALUE="8081"> <PARAM NAME="download.Instruction" VALUE="ozrviewer.idf"> <PARAM NAME="install.Base" VALUE="<PROGRAMS>/Forcs"> <PARAM NAME="install.Namespace" VALUE="ypk">
</OBJECT> |
ºä¾î °æ·Î´Â ÇØ´ç »çÀÌÆ®¿¡ ¸Â°Ô Á¶ÀýÇÏ¼Å¾ß ÇÕ´Ï´Ù.
À§ÀÇ Å±׸¦ ½ÇÇàÇÏ¸é ¾Æ·¡ 3°¡Áö ÀÛ¾÷ÀÌ ¼öÇàµË´Ï´Ù.
1. ·ÎÄà pc¿¡ ZTransferX.cab ¼³Ä¡
2. ZTransferX°¡ ·ÎÄÃpcÀÇ install.Base, install.NamespaceÀ§Ä¡¿¡ ºä¾î¸¦ ´Ù¿î¹ÞÀ½
¿¹) c:\program files\forcs\oz family\ypk\
3. ZTransferX°¡ ´Ù¿î¹ÞÀº ºä¾î¸¦ ¼³Ä¡ÇÔ (·¹Áö½ºÆ®¸® µî·ÏµÊ)
ºä¾î ű׿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀº ¡°http://oztn.net/kb/article/kbrpt/119131496150307¡±À» Âü°íÇϼ¼¿ä.
2. MiPlatform¿¡¼ ¿ÀÁî ºä¾î Ãß°¡
MiPlatformÀÇ PID ÅøÀ» ½ÇÇàÇÑ ÈÄ ¿ÀÁî ºä¾î¸¦ ¶ç¿ï FormÀ¸·Î À̵¿ÇÕ´Ï´Ù.
»ó´Ü Tools ¸Þ´ºÀÇ Project Manager¿¡¼ URL¿·ÀÇ + ±âÈ£¸¦ Ŭ¸¯Çϼ¼¿ä.
Active X Controls ÅÇ¿¡¼ EXOZViewer30 ControlÀ» ¼±ÅÃÇÏ°í Insert - OK ¹öÆ°À» Ŭ¸¯Çϼ¼¿ä.
¿ÀÁîºä¾î ¹öÀüÀÌ 5.0ÀÎ °æ¿ì¿¡´Â EXOZViewer50 ControlÀ» ¼±ÅÃÇÏ¸é µË´Ï´Ù.
Åø¹ÙÀÇ EXOZViewer30 ¾ÆÀÌÄÜÀ» Ŭ¸¯ÇÏ¿© Form¿¡ ºä¾î¸¦ Ãß°¡ÇÕ´Ï´Ù.
3. º¸°í¼ È£Ãâ
¾Æ·¡¿Í °°ÀÌ ºä¾î¿¡ Àü´ÞÇÒ Æз¯¹ÌÅ͸¦ ¼³Á¤ÇÑ str º¯¼ö¸¦ À§ÀÇ 2¹ø¿¡¼ Ãß°¡ÇÑ EXOZViewer30 ÀÇ CreateReport ÇÔ¼ö·Î
Àü´ÞÇÕ´Ï´Ù. CreateReport ÇÔ¼ö´Â Æз¯¹ÌÅÍ Á¤º¸·Î º¸°í¼¸¦ ºä¾î¿¡ º¸¿©ÁÖ´Â ÇÔ¼öÀÔ´Ï´Ù.
function OZ() { var str; str = ""; str = str + "viewer.namespace=ºä¾îÀ̸§\\ozviewer\n"; str = str + "connection.servlet=http://127.0.0.1:8080/oz/server\n"; str = str + "connection.reportname=º¸°í¼À̸§.ozr\n"; EXOZViewer30.CreateReport(str); } |
* createReportÀÇ ³×ÀÓ½ºÆäÀ̽º ¼³Á¤
Âü°í·Î, ºä¾î°¡ ½ÇÇàµÈ ÈÄ createReport·Î ºä¾î¿¡ º¸°í¼¸¦ º¸¿©ÁÖ´Â °æ¿ì¿¡´Â
¾î¶² ºä¾î·Î º¸¿©ÁÙÁö ÁöÁ¤ÇÏ´Â viewer.namespace Æз¯¹ÌÅÍ ±â´ÉÀÌ Áö¿øµÇÁö ¾Ê¾Ò½À´Ï´Ù.
±×·¯³ª 2009³â 5¿ù ºÎÅÍ 50¹öÀü¿¡ ´ëÇØ viewer.namespace°¡ µÇµµ·Ï ±â´ÉÀÌ Ãß°¡µÇ¾ú½À´Ï´Ù.
±×·¯³ª, createReport·Î º¸°í¼¸¦ ½ÇÇàÇÒ ¶§ namespace ±â´ÉÀÌ µÇ´Â ºä¾î·Î ¸ÕÀú ½ÇÇàÀÌ µÇÁö ¾ÊÀ¸¸é
»çÀÌÆ® ºä¾î°¡ Áö¿øµÇ´Â ºä¾îÀÏÁö¶óµµ namespace°¡ ÀνĵÇÁö ¾Ê½À´Ï´Ù.
ÀÌ·± °æ¿ì ¾Æ·¡¿Í °°ÀÌ ztransferx¸¦ ÅëÇØ ·¹Áö½ºÆ®¸®¿¡ ½ÇÇàÇÒ ºä¾î¸¦ µî·ÏÇÑ ÈÄ È£ÃâÇÏ½Ã¸é µË´Ï´Ù.
* ZTransferX·Î ·¹Áö½ºÆ®¸®¿¡ ºä¾î¸¦ µî·ÏÇÏ´Â ¹æ¹ý
1. ¸¶ÀÌÇ÷§Æû¿¡¼ ºä¾î¸¦ ¶ç¿ì´Â FormÀ» È£ÃâÇϱâ Àü¿¡ ½ÇÇàµÇ´Â ȸ鿡¼ ZTransferX ControlÀ» Ãß°¡ÇÕ´Ï´Ù.
a. ¸¶ÀÌÇ÷§Æû PID > Tools ¸Þ´º > Project Manager ¼±Åà > Components ÅÇ > URL ¿·ÀÇ + (Add New) Ŭ¸¯ > ActiveXControls ÅÇ > ZTransferX Control ¼±Åà > Insert > OK
b. Åø¹ÙÀÇ ZTransferX Ãß°¡
2. ZTransferX ControlÀÇ ¼Ó¼ºÃ¢¿¡¼ ¾Æ·¡ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù.
DownloadInstruction : ozrviewer.idf
DownloadPort : 8081
DownloadServer : http://localhost/ypk/ozrviewer
InstallBase : <PROGRAMS>/Forcs
InstallNamespace : ypk
InstallRegisteronly : -1
3. ºä¾î¸¦ ¶ç¿ì´Â FormÀ» º¸¿©ÁÖ±â Àü¿¡ ¾Æ·¡ ½ºÅ©¸³Æ®¸¦ È£ÃâÇϸé À§ÀÇ ¼Ó¼º¿¡ ¼³Á¤ÇÑ ºä¾î¸¦ ·¹Áö½ºÆ®¸®¿¡ µî·ÏÇÕ´Ï´Ù.
ZTransferX0.StartInstall();
4. ¶Ç´Â ´ÙÀ½°ú °°ÀÌ ½ºÅ©¸³Æ®·Î ¼Ó¼ºÀ» ¸ðµÎ ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ZTransferX0.InstallNamespace = "ºä¾î³×ÀÓ½ºÆäÀ̽ºÀ̸§";
ZTransferX0.InstallBase = "<PROGRAMS>/Forcs";
ZTransferX0.InstallRegistOnly = "-1";
ZTransferX0.DownloadServer = "http://127.0.0.1/oz50/OZReportViewer5.0";
ZTransferX0.DownloadPort = "8080";
ZTransferX0.DownloadInstruction = "ozrviewer.idf";
ZTransferX0.StartInstall();
ÀÌ¿Í °°ÀÌ ÇÏ¸é ºä¾î°¡ ½ÇÇàµÉ ¶§ ¸¶Áö¸· ·¹Áö½ºÆ®¸®¿¡ µî·ÏµÈ ºä¾î·Î ¶ç¿ì±â ¶§¹®¿¡ namespaceºÎºÐÀ» °í·ÁÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
¸¸¾à À§ÀÇ InstallRegisteronly °ªÀ» 0 (default)À¸·Î ÇÏ¸é ·ÎÄÃpc¿¡ ºä¾î°¡ ¾ø°Å³ª ·ÎÄà ºä¾îº¸´Ù ¼¹ö ºä¾î ¹öÀüÀÌ ³ôÀ» °æ¿ì ºä¾î¼³Ä¡±îÁö µË´Ï´Ù.
µû¶ó¼ ºä¾î ¼³Ä¡¿ëÀ¸·Îµµ ÀÌ ¹æ¹ýÀ» »ç¿ëÇÒ ¼ö ÀÖÀ¸³ª ZTransferX´Â ¹Ì¸® ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
---
À§ÀÇ OZ Viewer ¼³Ä¡ object ű׸¦ À¥¿¡¼ ½ÇÇàÇÏÁö ¾Ê°í, ZTransferX¸¸ ¾Æ·¡¿Í °°ÀÌ ¸ÕÀú ¼³Ä¡ÇÑ ÈÄ
"ZTransferX·Î ·¹Áö½ºÆ®¸®¿¡ ºä¾î¸¦ µî·ÏÇÏ´Â ¹æ¹ý"¿¡ ÀÖ´Â ¹æ¹ýÀ¸·Î InstallRegisteronly °ª¸¸ 0À¸·Î Çؼ ºä¾î¸¦ ¼³Ä¡ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ZTransferX.cabÀ» MiplatformÀ» ÅëÇØ ¼³Ä¡ÇÑ ÈÄ ¿ÀÁîºä¾î´Â º°µµ·Î ¼³Ä¡ÇÏ·Á¸é ¸¶ÀÌÇ÷§Æû ¼³Ä¡ ÆÄÀÏ start~.xml¿¡ ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇÏ¿© ZTransferX¸¦ ¸ÕÀú ¹èÆ÷, ¼³Ä¡ÇÕ´Ï´Ù. (ÆÄÀϸí°ú ¹öÀüÀº ¼öÁ¤ ÇÊ¿ä)
<record> <TARGET>{C7C7225A-9476-47AC-B0B0-FF3B79D55E67}</TARGET> <FILENAME>ZTransferX_2,2,3,7.cab</FILENAME> <VERSION>system::2,2,3,7</VERSION> <ACTION>DOWN</ACTION> </record> |
---
¿ÀÁî ºä¾îÀÇ CLSID´Â 0DEF32F8-170F-46F8-B1FF-4BF7443F5F25 ÀÔ´Ï´Ù.
5.x ¹öÀüºÎÅÍ´Â CLSID¿¡ 5DA6D279-ADDA-4F5B-821F-B211EB09EF1A ¸¦ °°ÀÌ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÇÏÀ§ ¹öÀü°úÀÇ namespace Ãæµ¹À» ¸·À¸·Á¸é ¸ðµç º¸°í¼ È£Ãâ Æû ¾Õ´Ü¿¡¼ "ZTransferX·Î ·¹Áö½ºÆ®¸®¿¡ ºä¾î¸¦ µî·ÏÇÏ´Â ¹æ¹ý"À»
Ãß°¡ÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù¸¸, CLSID 5DA6D279-ADDA-4F5B-821F-B211EB09EF1A ÀÎ ºä¾î¸¦ »ç¿ëÇÏ°Ô µÇ¸é
µû·Î ZTransferX·Î ºä¾î¸¦ ·¹Áö½ºÆ®¸®¿¡ ¸Å¹ø µî·ÏÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
[±âÁ¸ Ŭ·¡½º ¾ÆÀ̵ð]
[5.x ºÎÅÍ Ãß°¡µÈ Ŭ·¡½º ¾ÆÀ̵ð]
|