Flex製作的個人簡歷打印
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import mx.printing.FlexPrintJob;
private function printResume():void
{
var printJob:FlexPrintJob = new FlexPrintJob();
printJob.start();
printJob.addObject(resume);
printJob.send();
}
]]>
</mx:Script>
<mx:Style>
Application
{
paddingLeft: 0;
paddingRight: 0;
paddingTop: 0;
paddingBottom: 0;
verticalGap: 0;
fontSize: 12;
}
.resume
{
backgroundAlpha: 1;
backgroundColor: #FFFFFF;
borderColor: #888888;
borderStyle: solid;
borderThickness: 1;
paddingLeft: 15;
paddingRight: 15;
paddingTop: 15;
paddingBottom: 15;
verticalGap: 0;
}
Grid
{
backgroundAlpha: 1;
backgroundColor: #FFFFFF;
borderColor: #000000;
borderSides: "right bottom";
borderStyle: solid;
borderThickness: 1;
horizontalGap: 0;
verticalGap: 0;
}
GridItem
{
borderColor: #000000;
borderSides: "left top";
borderStyle: solid;
borderThickness: 1;
}
.title
{
fontSize: 24;
textAlign: center;
}
.photo
{
borderColor: #000000;
borderSides: "left top";
borderStyle: solid;
borderThickness: 1;
paddingLeft: 2;
paddingRight: 2;
paddingTop: 2;
paddingBottom: 2;
}
.box
{
verticalGap: 0;
}
</mx:Style>
<mx:ApplicationControlBar width="100%">
<mx:Button label="打印簡歷" click="printResume()" />
</mx:ApplicationControlBar>
<mx:Canvas width="100%" height="100%">
<mx:VBox id="resume"
x="20" y="20" width="682" height="620" styleName="resume">
<mx:Spacer height="12" />
<mx:Label width="100%" text="個人簡歷" styleName="title" />
<mx:Spacer height="8" />
<mx:Grid width="649" height="523">
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="姓名" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="吉林市" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="性別" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="男" />
</mx:GridItem>
<mx:GridItem width="99" rowSpan="5" styleName="photo">
<mx:Image width="90" height="100"
source="http://avatar.csdn.net/C/7/6/3_chaoloveyou.jpg" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="出生日期" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="-200000-1-1" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="籍貫" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="吉林市豐滿區" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="姓名" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="jason" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="性別" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="男" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="民族" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="暫缺" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="政治面貌" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="羣衆" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="身高" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="178cm" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="健康狀況" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="優秀" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem width="70">
<mx:Label text="學歷" />
</mx:GridItem>
<mx:GridItem width="110">
<mx:Label text="無" />
</mx:GridItem>
<mx:GridItem width="70">
<mx:Label text="畢業院校" />
</mx:GridItem>
<mx:GridItem width="110" colSpan="2">
<mx:Label text="吉林大學軟件學院" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem colSpan="5">
<mx:Label text="◇教育經歷◇" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="78">
<mx:GridItem colSpan="5" />
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem colSpan="5">
<mx:Label text="◇工作經驗◇" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="78">
<mx:GridItem colSpan="5">
<mx:Label text="本人擅長打獵、捕魚、採集野果、製作石器、生火等,有20年以上工作經驗。" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem colSpan="5">
<mx:Label text="◇項目經驗◇" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="78">
<mx:GridItem colSpan="5">
<mx:VBox styleName="box">
<mx:Label text="獵野豬(與他人合作完成)" />
<mx:Label text="撿兔子(野火燒熟的)" />
<mx:Label text="曾獨立捕到一人長大鯉魚一條" />
</mx:VBox>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="21">
<mx:GridItem colSpan="5">
<mx:Label text="◇自我評價◇" />
</mx:GridItem>
</mx:GridRow>
<mx:GridRow height="78">
<mx:GridItem colSpan="5">
<mx:Label text="樂觀向上、有團隊合作精神" />
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:VBox>
</mx:Canvas>
</mx:Application>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.