Programming268 POI 셀병합 예제 HSSFWorkbook workbook = new HSSFWorkbook(); HSSFSheet sheet = workbook .createSheet (sheetName ); // headerHSSFRow row = sheet. createRow( 0); sheet. addMergedRegion (new Region(( int) 0 , ( short )0 , ( int) 1, (short )0 )); //번호 sheet. addMergedRegion (new Region(( int) 0 , ( short )1 , ( int) 1, (short )1 )); //이름 sheet. addMergedRegion (new Region(( int) 0 , ( short )2 , ( int) 1, (short )2 .. 2014. 2. 20. POI(엑셀라이브러리) import org.apache.poi.ss.usermodel.Cell;import org.apache.poi.ss.usermodel.CellStyle;import org.apache.poi.ss.usermodel.Font;import org.apache.poi.ss.usermodel.IndexedColors;import org.apache.poi.ss.usermodel.Row;import org.apache.poi.ss.usermodel.Sheet;import org.apache.poi.ss.usermodel.Workbook;import org.apache.poi.ss.util.CellRangeAddress;import org.apache.poi.xssf.usermodel.XSSFWorkbook; Wo.. 2014. 2. 20. 문자 byte 수 체크하기 function check_msglen() { var length = calculate_msglen(document.getElementById('content').value); document.getElementById('byte').value = length; } function calculate_msglen(message) { var nbytes = 0; for (i=0; i 4) { nbytes += 2; } else if (ch != '\r') { nbytes++; } } return nbytes; } ================================== onkeyup="(12, this.name);" // 제한 byte 길이, 객체 이름 // 글자 byte 계산 function chec.. 2013. 12. 5. Table insertRow() Method Definition and UsageThe insertRow() method inserts a new row at the specified index in a table.SyntaxtableObject.insertRow(index) ValueDescriptionindexAn integer that specifies the position of the row to insert (starts at 0). The value of -1 can also be used; which result in that the new row will be inserted at the last position. This parameter is required in Firefox and Opera, but optional in I.. 2013. 11. 27. 이전 1 ··· 34 35 36 37 38 39 40 ··· 67 다음