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 (
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
¡¡¡¡ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º
¡¡¡¡package com.example.pinyin.demo2;
¡¡¡¡import net.sourceforge.pinyin4j.PinyinHelper;
¡¡¡¡import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
¡¡¡¡import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
¡¡¡¡import net.sourceforge.pinyin4j.form ......
package fileIo;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
public&nb ......
1.Ç°ÑÔ£º
ÄãµÄ³ÌÐò×ÜÓÐÒ»Ìì»á±ÀÀ£µô£¬ÔÚ±ÀÀ£µôµÄʱºòÎÒÃÇÒªÖªµÀËüÔÚÄÄ£¬ÎªÁËʲô¶ø±ÀÀ£µô£¬Êý¾ÝµÄ±£´æ»òÕ߶ªÊ§Çé¿öÈçºÎµÈÎÊÌâ¡£ÎÒÃÇ¿ÉÒÔͨ¹ý¼Ì³ÐÀàjava.lang.ThrowableµÄ×ÓÀࣺExceptionÀ´Éè¼ÆÎÒÃÇ×Ô¼ºµÄJavaÒì³£¡£ExceptionÀàÓÃÓÚÃèÊö³ÌÐòÄܹ»²¶»ñµÄÒì³££¬ÈçClassNotFoundException¡£Òª×¢ÒâµÄÊÇ×Ô¶¨ÒåÒì³£ÀàÖ®¼äÒ²¿ÉÒÔÓм ......
¹ØÓÚjavaµÄ¼¯ºÏÀà,ÒÔ¼°HashMapÖÐSetµÄÓ÷¨!
2005-10-22 14:47:43 Sat | ÔĶÁ£¨547£©´Î
package com.tiantian;
import java.util.*;
public class JAVAContainer {
public static void main(String[] args) throws Exception {
//&nbs ......
×î¼Ñ´ð°¸
1. ±àд·¶ÀýÎĵµ
public class TestNative
{
private native static int Max(int a,int b);
public static void main(String[] args)
{
System.out.println(Max(4,5));
}
static
{
System.loadLibrary("VCdll");
}
}
ÆäÖÐ
LoadLibraryÖеÄDLLÎļþÃû³Æ¿ÉÒÔ ......