ºÎ·Ï
AI Script - XML Type
     
¢º °³¿ä ¡¡
     
¡¡ ±âÁ¸ jsp, asp¿Í °°Àº cgi ÆÄÀϰú º¸°í¼­ÀÇ ½ºÅ¸ÀÏÀ» Á¤ÀÇÇÏ´Â style ÆÄÀÏÀ» ÇÔ²² »ý¼ºÇÕ´Ï´Ù.
½ºÅ¸ÀÏ ÆÄÀÏÀÇ È®ÀåÀÚ´Â styleÀÌ°í º¸°í¼­ ¼­ºñ½º ½Ã Ŭ¶óÀÌ¾ðÆ®¿¡ ij½ÃµË´Ï´Ù.
(µðÀÚÀο¡¼­ ¹Ì¸®º¸±â ½Ã¿¡´Â ½ºÅ¸ÀÏ ÆÄÀÏÀÌ Ä³½¬µÇÁö ¾Ê½À´Ï´Ù.)
Â÷Æ®, ¹ÙÄÚµå, Å©·Î½ºÅÇÀÇ form ÆÄÀÏ(.cht, .bct, .ctd)°ú À̹ÌÁö´Â ±âÁ¸ÀÇ º°µµ ÆÄÀÏ·Î ¼­ºñ½ºµÇÁö ¾Ê°í ½ºÅ¸ÀÏ ÆÄÀÏ¿¡ ¸ðµÎ Æ÷ÇԵ˴ϴÙ.
´Ü, À̹ÌÁö ÆÄÀÏÀº µðÀÚÀÎ ½Ã ¼±Åÿ¡ ÀÇÇØ ½ºÅ¸ÀÏ ÆÄÀÏ¿¡ Æ÷ÇÔµÇÁö ¾Ê°í º°µµÀÇ http È£ÃâÇüÅÂÀÇ ¼­ºñ½º°¡ °¡´ÉÇÕ´Ï´Ù. º¸°í¼­ ¼Ò½º¸¦ Àç »ý¼ºÇÏ´Â °æ¿ì °»½ÅµÈ ½ºÅ¸ÀÏ ÆÄÀϵµ °°ÀÌ ¼­¹ö·Î ¾÷·ÎµåÇØ¾ß ÇÔÀ» ÁÖÀÇÇϽñ⠹ٶø´Ï´Ù.

<Source Debugging ½ÇÇà(´ÜÃà Ű F5 - º¸°í¼­ ½ºÅ©¸³Æ® »ý¼º Áß>


<Á¤»ó ¿Ï·á µÈ AI Script >
¡¡
¡¡ ¡¡ ¡¡
¢º ÇÔ¼ö À¯Çü ¡¡
     
  1. objectWrite
objectWrite(int type, int left, int top, int width, int height, string data, string name, string style)
»ç¼±, ¼öÆò¼±, ¼öÁ÷¼±À» ±×·ÁÁÝ´Ï´Ù.
type °´Ã¼ Á¾·ù (CELL_OBJECT, DRAW_OBJECT)

left, top, width, height

°´Ã¼ÀÇ ÁÂÇ¥

data

°´Ã¼ µ¥ÀÌÅÍ

name

¿ÀºêÁ§Æ®ÀÇ À̸§

style

¿ÀºêÁ§Æ®¸¦ Á¤ÀÇÇÏ´Â ½ºÅ¸ÀÏ À̸§

¿¹) objectWrite(CELL_OBJECT, nXCurPos, nYCurPos, 56, 20, sheet10_A2, "sheet10_A2", "cell_style_0")

2. propertyWrite
propertyWrite(int type, string name, string property, string style)
»ç¼±, ¼öÆò¼±, ¼öÁ÷¼±À» ±×·ÁÁÝ´Ï´Ù.
type °´Ã¼ ÇÁ·¯ÆÛƼÀÇ Á¾·ù (CELL_OBJECT, DRAW_OBJECT)

name

ÇÁ·¯ÆÛƼ¸¦ ¼³Á¤ÇÒ ¿ÀºêÁ§Æ®ÀÇ À̸§

property

¼³Á¤ÇÒ ÇÁ·¯ÆÛƼ À̸§

style

»õ·Î ¼³Á¤ÇÒ ÇÁ·¯ÆÛƼÀÇ °ª

¿¹) propertyWrite(CELL_OBJECT, "sheet10_B2", "fontName|fontSize|fontBold", "±¼¸²Ã¼" + "|" + "13" + "|" + "y")

º¹¼ö °³ÀÇ name, property, style ±â¼úÀÌ °¡´ÉÇÏ°í ±¸ºÐÀÚ´Â |
¿¹) propertywrite(CELL_PROPERTY, "sheet30_K2|sheet30_K3" "fontColor|fontSize" "RGB[192,192,192]|12");
    -> sheet30_K2¿Í sheet30_K3 ¼¿ °´Ã¼¿¡ ÆùÆ® Ä÷¯¿Í ÆùÆ® »çÀÌÁ value¿¡ ÁöÁ¤µÈ °ªÀ» Àû¿ë
 
     
¢º CellProperty  
     
¡¡

Property

Desription

Value

Default

fontName

ÆùÆ® À̸§ (font face)

 

 

fontSize

ÆùÆ® »çÀÌÁî

 

 

fontColor

ÆùÆ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

fontBold

ÆùÆ® º¼µå

n

¼Ó¼º ÇØÁ¦

 

y

¼Ó¼º ¼³Á¤

fontUnderline

ÆùÆ® ¾ð´õ¶óÀÎ

n

¼Ó¼º ÇØÁ¦

 

y

¼Ó¼º ¼³Á¤

fontItalic

ÆùÆ® ÀÌŸ¯

n

¼Ó¼º ÇØÁ¦

 

y

¼Ó¼º ¼³Á¤

horAlign

ÅØ½ºÆ® ¼öÆò Á¤·Ä

left

¿ÞÂÊ Á¤·Ä

 

center

°¡¿îµ¥ Á¤·Ä

right

¿À¸¥ÂÊ Á¤·Ä

vertAlign

ÅØ½ºÆ® ¼öÁ÷ Á¤·Ä

top

À§ Á¤·Ä

 

vcenter

°¡¿îµ¥ Á¤·Ä

bottom

¾Æ·¡ Á¤·Ä

wordWrap

ÀÚ¸£±â ¹× °³Çà

none

¼Ó¼º ¾øÀ½

 

tr

ÅØ½ºÆ® ù ¶óÀθ¸ Ãâ·Â

xl

ÅØ½ºÆ® ¶óÀÎ ÀÚµ¿ °³Çà

leftBorderType

¿ÞÂÊ Å׵θ® ŸÀÔ

none

Å׵θ® ¾øÀ½

 

solid

½Ç¼±

dot

Á¡¼±

dashdot

ÀÏÁ¡¼â¼±

dashdotdot

ÀÌÁ¡¼â¼±

doubleslim

ÀÌÁ߽Ǽ±

leftBorderWidth

¿ÞÂÊ Å׵θ® µÎ²²

Solid type ? 0 ~ 1

Dot, dashdot, dashdotdot, doubleslim - 0

 

leftBorderColor

¿ÞÂÊ Å׵θ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

topBorderType

À§ÂÊ Å׵θ® ŸÀÔ

leftBorderTyle ÂüÁ¶

 

topBorderWidth

À§ÂÊ Å׵θ® µÎ²²

leftBorderWidth ÂüÁ¶

 

topBorderColor

À§ÂÊ Å׵θ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

rightBorderType

¿À¸¥ÂÊ Å׵θ® ŸÀÔ

leftBorderTyle ÂüÁ¶

 

rightBorderWidth

¿À¸¥ÂÊ Å׵θ® µÎ²²

leftBorderWidth ÂüÁ¶

 

rightBorderColor

¿À¸¥ÂÊ Å׵θ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

bottomBorderType

¾Æ·¡ÂÊ Å׵θ® ŸÀÔ

leftBorderTyle ÂüÁ¶

 

bottomBorderWidth

¾Æ·¡ÂÊ Å׵θ® µÎ²²

leftBorderWidth ÂüÁ¶

 

bottomBorderColor

¾Æ·¡ÂÊ Å׵θ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

slashBorderType

½½·¡½¬ ¶óÀΠŸÀÔ

leftBorderTyle ÂüÁ¶

 

slashBorderWidth

½½·¡½¬ ¶óÀÎ µÎ²²

leftBorderWidth ÂüÁ¶

 

slashBorderColor

½½·¡½¬ ¶óÀÎ Ä÷¯

COLORREF || RGB[red,green,blue]

 

bslashBorderType

¿ª½½·¡½¬ ¶óÀΠŸÀÔ

leftBorderTyle ÂüÁ¶

 

bslashBorderWidth

¿ª½½·¡½¬ ¶óÀÎ µÎ²²

leftBorderWidth ÂüÁ¶

 

bslashBorderColor

¿ª½½·¡½¬ ¶óÀÎ Ä÷¯

COLORREF || RGB[red,green,blue]

 

borderType

½½·¡½¬¿Í ¿ª½½·¡½¬ ¶óÀÎÀ» Á¦¿ÜÇÑ ¸ðµç Å׵θ® ŸÀÔ

leftBorderTyle ÂüÁ¶

 

borderWidth

½½·¡½¬¿Í ¿ª½½·¡½¬ ¶óÀÎÀ» Á¦¿ÜÇÑ ¸ðµç Å׵θ® µÎ²²

leftBorderWidth ÂüÁ¶

 

borderColor

½½·¡½¬¿Í ¿ª½½·¡½¬ ¶óÀÎÀ» Á¦¿ÜÇÑ ¸ðµç Å׵θ® Ä÷¯

COLORREF || RGB[red,green,blue]

 

displayFormat

¹®ÀÚ¿­ Æ÷¸Ë Á¤º¸

»ç¿ëÀÚ Á¤ÀÇ·Î ÁöÁ¤

 

fillColor

¿µ¿ª ä¿ì±â Ä÷¯

COLORREF || RGB[red,green,blue]

 

lineWrap

FIT ¼³Á¤ ¿©ºÎ

n

¼Ó¼º ÇØÁ¦

 

y

¼Ó¼º ¼³Á¤

editable

ÆíÁý ¿©ºÎ

n

¼Ó¼º ÇØÁ¦

 

y

¼Ó¼º ¼³Á¤

horMergeCnt

°¡»ó ¼öÆò º´ÇÕ ¼¿ÀÇ °³¼ö

 

 

width

¼¿ Æø

 

 

height

¼¿ ³ôÀÌ

 

 

moveOffset

À̵¿ °£°Ý

(x Ãà À̵¿ ,y Ãà À̵¿ )

 

¡¡