You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/05/20 09:37:07 UTC

DO NOT REPLY [Bug 20048] - [PATCH][RFE] Add a way to change the focused cell with usermodel API

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20048>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20048

[PATCH][RFE] Add a way to change the focused cell with usermodel API

kamoshida.toshiaki@future.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[RFE] Add a way to change   |[PATCH][RFE] Add a way to
                   |the focused cell with       |change the focused cell with
                   |usermodel API               |usermodel API



------- Additional Comments From kamoshida.toshiaki@future.co.jp  2003-05-20 07:37 -------
Please apply the patch and excect it and check "Test1.xls" and "Test2.xls"
with Excel Application.

import java.io.FileOutputStream;

import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

public class Test {

	public static void main(String[] args) throws Exception{
		HSSFWorkbook book = new HSSFWorkbook();
		HSSFSheet s1 = book.createSheet("Test1");
		book.write(new FileOutputStream("Test1.xls"));
		s1.setActiveCell(10,(short)10);
		book.write(new FileOutputStream("Test2.xls"));
	}
}