AI Report ¼³Ä¡(HTML ¹öÀü)
AI Viewer ¼³Ä¡ (HTML)
     

¢º

AI Viewer ¼³Ä¡ ¡¡
   
¡¡ 1. À¥ ¼­¹ö Context Root ³» AIReport ºä¾î ¸ðµâÀ» ¹èÄ¡ÇÒ directory¸¦ »ý¼º

 ex) C:\Tomcat 7.0\webapps\ROOT\AIViewer55 ¢Ð ¹°¸®Àû ¼­¹ö(ÆÄÀÏ) °æ·Î
     http://www.ai-report.com/AIViewer55          ¢Ð À¥ ¼­¹ö(http) °æ·Î

2. ¸ðµâ¼ÂÆÃ
'AIViewer55' Æú´õ
- ROOT (WebContent) ³» ¾÷·Îµå

ex1) Tomcat - webapps\ROOT\AIViewer55\
ex2) Eclipse - Project\WebContent\AIViewer55\

'AICommon' Æú´õ
- ROOT (WebContent)\WEB-INF ³» ¾÷·Îµå
ex1) Tomcat - \WEB-INF\lib\*.jar , \WEB-INF\classes\*.properties, *.txt
ex2) Eclipse - /WEB-INF/lib/*.jar , /WEB-INF/classes/*.properties, *.txt (/Java Resources/src/*.properties, *.txt)
 ¡Ø ftp Àü¼ÛÀÏ °æ¿ì Àü¼Û ŸÀÔÀº ¹ÙÀ̳ʸ®·Î ÁöÁ¤

3. °³¹ß ȯ°æ ¼³Á¤

 3-1. Report ȯ°æ¼³Á¤ (AIReport.properties)
 - ¸ðµâ°æ·Î (Eclipse - /Project/AIViewer55)
 installPath = /AIViewer55/
 - À̹ÌÁö»ý¼º°æ·Î
 imagePath = D:/temp/
 - ÆùÆ®°æ·Î
 fontPath = c:/windows/fonts
 ¸®´ª½º & À¯´Ð½º ȯ°æÀϰæ¿ì ~/java/jre/lib/fonts °æ·Î¸¦ Àâ¾ÆÁÖ¼Å¾ß µË´Ï´Ù.
 ±¼¸², Arial Unicode MS ÆùÆ®´Â fonts Æú´õ¿¡ ²À ¾÷·Îµå ÇØÁÖ¼Å¾ß µË´Ï´Ù.
 - ±âº»ÆùÆ®
 defaultFont = ±¼¸²Ã¼
 - pdf, excel »ý¼º°æ·Î
 pdfPath = D:/temp/
 Àμ⠿¬µ¿ÆäÀÌÁö °æ·Î
 printCallTag = /AIViewer55/common/AIprint.jsp
 flashCallTag = /AIViewer55/common/AIflashprint.jsp
 À̹ÌÁö »ó´ë / Àý´ë°æ·Î ÁöÁ¤(±âº» : Àý´ë°æ·Î)
 imageAbsoluteURL
 Â÷Æ® À̹ÌÁö »ý¼º°æ·Î(±âº» : /AIViewer55/image/)
 #chartPath = D:/temp/
 ¿öÅ͸¶Å©¼³Á¤
 waterMarkAttribute = attributeName
 waterMark1 = http://localhost:8080/springViewer/AIViewer50/common/images/test.jpg,300,300

 3-2. ai_index.html »ùÇÃ

<html>
<head>
<script language="javascript">
var params = "?reportMode=HTML";
// Embed ºä¾î ÇÔ¼ö¿¹Á¦
function embedAI(report) {
parent.ai_viewer.location.href = report + params;
}
// Popup ºä¾î ÇÔ¼ö¿¹Á¦
function popAI(report){
window.open(report + params,'AIViewer','width=900,height=800,top=10,left=10,toolbar=no,menubar=no,lacation=no,scrollbars=no,status=no')
}
</head>
<body>
.........Áß·«..........
<input type=button value="Embedºä¾î »ç¿ë¿¹Á¦" onClick="javascript:embedAI('sample.jsp');">
<input type=button value="Popupºä¾î »ç¿ë¿¹Á¦" onClick="javascript:popAI('sample.jsp');">

 3-3. ¿¹Á¦ À¥ ÆäÀÌÁö ½ÇÇàÀ» ÅëÇÑ AIReport ºä¾î
  : À¥ ºê¶ó¿ìÀú¿¡¼­ ¿¹Á¦·Î ¹èÆ÷µÈ ai_index.html ½ÇÇàÇϱâ
  HTML ¹öÀüÀº ¼­¹ö¿¡¼­ µ¿ÀÛÇϱ⠶§¹®¿¡ 'º°µµ ¼³Ä¡¾øÀÌ' ¹Ù·Î º¸½Ç¼ö ÀÖ½À´Ï´Ù.
  


¡¡