여기서 참조를 따라가 보면, JSP에서 엑셀 파일을 보여주기 위해 BinaryView라는 API를 쓰고 있다는 것을 알게된다.
BinaryView의 API를 보면, getMimeType이라는 메서드가 있는데... http://help.sap.com/javadocs/boe/xi/ws/en/com/businessobjects/dsws/bicatalog/Document.html#getMimeType()
getMimeType
public java.lang.String getMimeType()
- Return the mime type of the Document.
Supported Business Objects Document types:
- application/x-rpt (Crystal Report)
- application/rep (Full Client)
- application/wid (Webi Document)
Supported third party document mime-types:
- application/msword (doc)
- application/vnd.ms-powerpoint (ppt)
- application/vnd.ms-excel (xls)
- application/pdf (pdf)
- application/zip (zip)
- application/rtf (rtf)
- application/winhlp (hlp)
- video/msvideo (avi)
- video/mpeg (mpg, mpeg)
- text/plain (txt)
- text/html (html)
- text/xml (xml)
- image/jpeg (jpeg)
- image/gif (gif)
- image/bmp (bmp)
- audio/x-wav (wav)
- application/x-msaccess (mdb)
- application/x-mswrite (wri)
- application/octet-stream
-
-
- Returns:
- a string containing the mime type.
엑셀에서 숫자를 문자 속성으로 처리하려고 할때
HTML head에 스타일 추가
<style>td { mso-number-format:\@; } </style>
숫자 표현하는 부분의 <TD> 에 style="mso-number-format:\@" 를 추가해도 됨