albert's blog
2013/12/24
Cannot Import Java Source Code via Astah Pro
›
Problem When I used Astah Pro to do import java code But it show the error which complain encoding issues: Solution As we do import...
An internal error occurred during: "Initializing Java Tooling" from Eclipse
›
Problem One day as I startup my eclipse it show the error as bellows: Solution Step1. Close Eclipse Step2. Go to your eclipse wor...
2013/12/05
How to pad a string with spaces when size of data is unknown in Microsoft SQL Server
›
Requirement When I select a character data with varchar(6) from Microsoft SQL Server.... And these data should have fixed length in rep...
2013/12/04
How to display column footer immediately without any spaces after details band
›
Problem This is my report design in iReport: Here is the Detail property and Column Footer property setting: But...as I generate ...
2013/11/29
Why I can't print dashed lines?
›
Problem This is my setting in iReport. The line had been set as dashed line. And you can see the dashed line in chrome pdf viewer ...
Why can't I save PDF in Chrome?
›
Problem My chrome version is up-to-date. But why I can't save PDF after viewing it within Chrome, the save button does not work. ...
2013/11/27
How to convert the amount from Arabic numerals to Chinese number (如何將阿拉伯數字金額轉大寫國字)
›
Requirement In our payment slip, we need to convert the amount from Arabic numerals to Chinese number. ex. 325250 will be converted to 參拾貳萬...
2013/11/26
How to clear an array in AngularJS?
›
Question If we have an array in AngularJS, how do I clear its content? Answer If we have an array, ex. $scope.itemarray = ['A'...
2013/11/25
How to do collection filter in Java
›
Requirement Assume I have a collection of Cta612pDto, and this collection contains: 1: [Cta612pDto [acc=0100, amt=13033356, seqnm=(*)年度預算...
2013/11/22
Why iReport eat my spaces
›
Requirement We had a report requirement as bellows: You can see some items' amount need to do indent. Others don't. Proble...
2013/11/18
AngularJS - How to remove unnecessary blank option in dynamic drop down list
›
Based on AngularJS - How to create dynamic drop down list this post, you had learned how to create a dynamic drop down list via AnguarJS. ...
AngularJS - How to create dynamic drop down list
›
Requirement The "區局代號" drop down list in this page should generate dynamically from database The sql statement is as bellows:...
2013/11/15
How to adjust column width to fit the contents in Apache POI
›
Problem I utilized Apache POI to write data into excel file. But I found out each cell width has the same default width, it does not adjust...
Apache Commons Application - Predicate Chain
›
Requirement If you have a collection of value object, and would like to do search just like SQL. And you may have more complex requirement...
2013/11/14
How to set currecny cell to right-justified horizontal alignment and apply 1000 separator in Apache POI
›
Problem We utilized Apache POI to write excel, but some currency cells do not right-justified horizontal alignment and do not apply 1000 se...
2013/11/12
POI 常用API筆記
›
參考資料來源: http://become.wei-ting.net/2011/11/poiexcel.html 1: File tempFile = new File(filePath,filename);//建立儲存檔案 2: Workbook workbook ...
How do I do redirect in AngularJS
›
Question I would like to do window.location (JavaScript way) to redirect page. How do I do in AngularJS? Answer You can use $window.loc...
‹
›
Home
View web version