Summary: | [PATCH][RFE] Add a way to change the focused cell with usermodel API | ||
---|---|---|---|
Product: | POI | Reporter: | Toshiaki Kamoshida <kamoshida.toshiaki> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | minor | ||
Priority: | P3 | ||
Version: | 2.0-pre3 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | PATCH to do it. |
Description
Toshiaki Kamoshida
2003-05-20 04:53:10 UTC
Created attachment 6418 [details]
PATCH to do it.
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")); } } have we done this yet? I thought we did. HSSFCell.setAsActiveCell() Please reopen if that doesnot solve your problem. Thanks. |