java±¨±íJXLºÍPOI´òÓ¡ÉèÖÃ
JXLµÄ´òÓ¡ÉèÖÃÔÚjxl.SheetSettingsÕâ¸öÀàÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ý·½·¨Sheet£¨»òÕßWritableSheet£©#getSettings()»ñÈ¡¡£
1.Ò³Ãæ
1.1·½Ïò
SheetSetting#setOrientation(PageOrientation po)£»
²ÎÊý£º PageOrientation#LANDSCAPE ºáÏò´òÓ¡
PageOrientation# PORTRAIT ×ÝÏò´òÓ¡
1.2Ëõ·Å
1.2.1Ëõ·Å±ÈÀý(A) SheetSetting #setScaleFactor (int);°Ù·Ö±ÈÐÎʽ
1.2.2µ÷Õû(F)
Ò³¿í SheetSetting #setFitWidth(int);
Ò³¸ß SheetSetting #setFitHeight(int);
1.3Ö½ÕÅ´óС(Z) SheetSetting #setPaperSize (PaperSize);
Ö½ÕÅ´óСµÄ¶¨Òå˵Ã÷²Î¼ûPaperSizeÀàÖеij£Á¿¡£
1.4ÆðʼҳÂë(R) SheetSetting #setPageStrart(int);[ĬÈÏ״̬]
2Ò³Ãæ¾à
2.1ÉÏ(T) SheetSetting # setTopMargin (double);
2.2ÏÂ(B) SheetSetting # setBottomMargin (double);
2.3×ó(L) SheetSetting # setLeftMargin (double);
2.4ÓÒ(R) SheetSetting # setRightMargin (double);
2.5ҳü(A) SheetSetting #setHeaderMargin(double);
2.6Ò³½Å(F) SheetSetting #setFooterMargin(double);
2.7¾ÓÖз½Ê½
2.7.1ˮƽ(Z) SheetSetting # setHorizontalCentre (boolean);
2.7.2´¹Ö±(V) SheetSetting #setVerticallyCenter(boolean);
3ҳü/Ò³½Å
3.1ҳüSheetSetting # setHeader£¨HeaderFooter£©;
˵Ã÷:
¶ÔÓÚHeaderFooterµÄÉèÖã¬Ê×ÏÈÈ·¶¨Ò³Ã¼µÄλÖã¨×ó¡¢ÖС¢ÓÒ£©£¬Í¨¹ýHeaderFooter#getCentre()£¨»òÕßgetLeft()¡¢getRight()£©·½·¨»ñÈ¡HeaderFooter.ContentsÀ֮࣬ºó¶ÔÕâ¸öÀàµÄÊôÐÔ½øÐвÙ×÷¡£
ÏÂÃæ¼òµ¥½éÉܼ¸¸ö³£Ó÷½·¨£º
ÉèÖÃ×ֺţºContents#setFontSize(int)
ÉèÖÃ×ÖÌ壺Contents#setFontName(String)
ÉèÖÃÄÚÈÝ£ºContents# append£¨String£©£¬»¹ÓÐappendDate()µ±Ç°ÈÕÆڵȵȣ¬¾ßÌå²Î¿¼ContentsÀà˵Ã÷
3.2Ò³½ÅSheetSetting # setFooter£¨HeaderFooter£©£»
˵Ã÷ͬÉÏ
4¹¤×÷±í
4.1´òÓ¡ÇøÓò
SheetSettings #setPrintArea(firstCol, firstRow, lastCol, lastRow)
4.2´òÓ¡±êÌâ
SheetSettings#setPrintTitles (
Ïà¹ØÎĵµ£º
ÓÐÁ½ÖÖ·½·¨£º
·½·¨Ò»£ºÓÃjava.util.DateÀàÀ´ÊµÏÖ£¬²¢½áºÏjava.text.DateFormatÀàÀ´ÊµÏÖʱ¼äµÄ¸ñʽ»¯£¬¿´ÏÂÃæ´úÂ룺
import java.util.*;
import java.text.*;
//ÒÔÏÂĬÈÏʱ¼äÈÕÆÚÏÔʾ·½Ê½¶¼ÊǺºÓïÓïÑÔ·½Ê½
//Ò»°ãÓïÑÔ¾ÍĬÈϺºÓï¾Í¿ÉÒÔÁË£¬Ê±¼äÈÕÆڵĸñʽĬÈÏΪMEDIUM·ç¸ñ£¬±ÈÈ磺2008-6-16 20:54:53
//ÒÔÏÂÏÔʾµÄÈ ......
(Ò»)³ÌÐò¿ª·¢£¬´æÔںܶàÎÊÌâ:Ê×ÏÈ£¬Ã¿Ò»´ÎWebÇëÇó¶¼Òª½¨Á¢Ò»´ÎÊý¾Ý¿âÁ¬½Ó¡£½¨Á¢Á¬½ÓÊÇÒ»¸ö·ÑʱµÄ»î¶¯£¬Ã¿´Î¶¼µÃ»¨·Ñ0.05s¡«1sµÄʱ¼ä£¬¶øÇÒϵͳ»¹Òª·ÖÅäÄÚ´æ×ÊÔ´¡£Õâ¸öʱ¼ä¶ÔÓÚÒ»´Î»ò¼¸´ÎÊý¾Ý¿â²Ù×÷£¬»òÐí¸Ð¾õ²»³öϵͳÓжà´óµÄ¿ªÏú¡£¿ÉÊǶÔÓÚÏÖÔÚµÄWebÓ¦Óã¬ÓÈÆäÊÇ´óÐ͵ç×ÓÉÌÎñÍøÕ¾£¬Í¬Ê±Óм¸ ......
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:ËÎÌå;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun&qu ......
Observer
Intent
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
How to
Subject
knows its observers. Any number of Observer objects may observe a subject.
provides an in ......
¹¤×÷ÒѾÓаëÄêÁË£¬Í»È»Ïëдµã¶«Î÷£¬´óѧµÄʱºò¾ÍÓÐдÈռǵÄÏ°¹ß£¬µ«ÊÇ×Ô´ÓÈ¥Java06°àѧϰһֱµ½ÏÖÔÚ¹¤×÷£¬ÂýÂýµÄҲûÓÐʱ¼äȥдÈռǣ¬Ï£Íûͨ¹ýÕâƪÎÄÕÂÄÜÈÃJava˽ÛÓµÄѧµÜѧÃÃÃÇ¿´ÁËÓÐËù°ïÖú¡£
ÏàÐźܶàͬѧºÜÎÒÒ»Ñù´óËĵÄʱºò¶¼±È½ÏÃÔ㣬ÓÈÆäÊÇÎÒ¶ÁµÄ¼ÆËã»úרҵ£¬ËµÊµ»°´óѧÀïѧµÄºÍÉç»áʵ¼ÊÐèÒªµÄ» ......