Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¶ÁÈ¡excel£¨JXL£©¡¾Êä³öΪhtml¸ñʽ¡¿

package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import jxl.Cell;
import jxl.Range;
import jxl.Sheet;
import jxl.Workbook;
import jxl.format.Alignment;
import jxl.format.Border;
import jxl.format.CellFormat;
import jxl.format.Colour;
import jxl.format.VerticalAlignment;
public class JXLReadExcel {
 
 public static void main(String[] args){
  
  try {
   System.out.println(getExcelInfo("D:\\businessStat1.xls"));
   
   //getExcelInfo("D:\\businessStat1.xls");
   
   //getProperties();
   
   //toHexString();
  } catch (Exception e) {
   e.printStackTrace();
  }
 }
 
 private static String getExcelInfo(String path) throws Exception{
  
  StringBuffer sb = new StringBuffer();
  
  File sourcefile = new File(path);
  
  InputStream is = new FileInputStream(sourcefile);
  
  Workbook rwb = Workbook.getWorkbook(is);
  
  Sheet sheet = rwb.getSheet(0);
  
  int colnum = sheet.getColumns();
  
  int rownum = sheet.getRows();
  
  Map<String,String> map[] = getRowSpanColSpanMap(sheet);
  
  sb.append("<table border='0' cellspacing='1'>");
  
  for(int row = 0; row < rownum; row ++) {
   
   sb.append("<tr>");
   
   for(int col = 0; col < colnum; col ++) {
    
    Cell cell = sheet.getCell(col, row);
    
    String content = cell.getContents();
    
 &nbs


Ïà¹ØÎĵµ£º

htmlÀïtitleÊôÐÔ»»Ðеķ½·¨

ÖÚËùÖÜÖª£¬¶ÔÓÚÁ´½ÓºÍͼƬ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÌí¼Ótitle
Êô
ÐÔÒÔÏÔʾһЩ˵Ã÷ÎÄ×Ö£¬Ò»°ãÇé¿öÏ£¬ÕâЩÎÄ×Ö¶¼ÊÇÏÔʾ³ÉÒ»ÐУ¬ÄÇôÓÐûÓа취ÈÃËüÒÔ¶àÐеķ½Ê½ÏÔÊ¾ÄØ£¿½â¾öµÄ·½·¨ÓÐÁ½ÖÖ£º
1.½«title
Êô
ÐԷֳɼ¸ÐÐÀ´Ð´£¬ÀýÈ磺
<a href=#" title
="˵Ã÷Ò»
˵Ã÷¶þ
˵Ã÷
Èý">Ó¡ÏóÅÉ</a> ......

´óѧ±ÏÒµÉè¼ÆC#¡¢winfrom¡¢.net¡¢html¡¢div+css´ú×ö

»¹ÔÚΪ±ÏÒµÉè¼Æ¶ø·³ÄÕô ¿´¿´ÕâÀï ÎÒ°ïÄã¸ã¶¨¾ÍºÃ
±¾ÈËʵ¼Ê¿ª·¢¾­Ñé·á¸» ѧ¹ý¸÷Àà³ÌÐò±àд ǰºǫ́¶¼¿ÉÒÔ
ÏÖÔڵŤ×÷²»Ôõô¾°ÆøÑ½ ËùÒÔÕÒµãÍâ¿ìÑø¼Òºý¿Úѽ ºÇºÇ
±¨³êÂï ¹ýµÃÈ¥¾ÍÐÐÁË Ã»Ê²Ã´ÒªÇó ½»¸öÅóÓÑÂï
Èç¹ûÓÐÒâÕß¿ÉÓë±¾ÈËÁªÏµqq604884385 Tel13438309220 ......

¡¾django ѧϰ±Ê¼Ç¡¿12 Êä³ö·ÇHTMLÄÚÈÝ

Django
ÓµÓÐһЩ
±ãÀûµÄÄÚ½¨¹¤¾ß°ïÖúÄãÉú³É³£¼ûµÄ·ÇHTML
ÄÚ
ÈÝ:
RSS/Atom
¾ÛºÏÎļþ
Õ¾µãµØÍ¼ (
Ò»¸öXML
¸ñʽÎļþ,
×î³õÓÉGoogle
¿ª·¢,
ÓÃÓÚ¸øËÑË÷ÒýÇæÌáʾÏßË÷)
»ù´¡:
ÊÓͼºÍMIME
ÀàÐÍ
´ÓÒ»¸öÊÓͼ·µ»ØÒ»¸ö·Ç HTML
ÄÚ
ÈݵĹؼüÊÇÔÚ¹¹ÔìÒ»¸ö HttpResponse
Àà
ʱ,
ÐèÒªÖ¸¶¨ mimetype
²ÎÊý¡£ ͨ
¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ