Click here to Skip to main content
15,888,351 members
Home / Discussions / Java
   

Java

 
AnswerRe: Hindi,Indic (Devnagri) Language Support in (Java, Struts,MS Access) Pin
427748026-Sep-09 6:15
427748026-Sep-09 6:15 
QuestionPOI ShrinkToFit Pin
DaveyM6926-Sep-09 1:30
professionalDaveyM6926-Sep-09 1:30 
AnswerRe: POI ShrinkToFit Pin
427748026-Sep-09 1:36
427748026-Sep-09 1:36 
GeneralRe: POI ShrinkToFit Pin
DaveyM6926-Sep-09 3:06
professionalDaveyM6926-Sep-09 3:06 
GeneralRe: POI ShrinkToFit Pin
427748026-Sep-09 5:21
427748026-Sep-09 5:21 
GeneralRe: POI ShrinkToFit Pin
DaveyM6926-Sep-09 6:59
professionalDaveyM6926-Sep-09 6:59 
GeneralPOI ShrinkToFit Solution Pin
DaveyM6926-Sep-09 7:37
professionalDaveyM6926-Sep-09 7:37 
GeneralRe: POI ShrinkToFit Solution Pin
427748028-Sep-09 1:43
427748028-Sep-09 1:43 
Hi David, you gave me a push to actually do it in Java so I asked Tony from NOPI project and he added the shrink property to HSSFCellStyle[^]. The new Solution would be:
// In C#
HSSFCellStyle cellstyle1 = hssfworkbook.CreateCellStyle();
cellstyle1.ShrinkToFit = true;
// In Java
HSSFCellStyle style = workbook.createCellStyle();
style.setShrinkToFit(true);

To do the same in Java POI I added the shrinktofit property to the HSSFCellStyle and recompiled the library:
Link[^] All you need to do is overwrite the same jar in the poi-bin-3.5-beta6-20090622.zip[^] folder.

Thanks and Regards to you all
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6928-Sep-09 3:09
professionalDaveyM6928-Sep-09 3:09 
GeneralRe: POI ShrinkToFit Solution Pin
427748030-Sep-09 1:07
427748030-Sep-09 1:07 
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6930-Sep-09 6:24
professionalDaveyM6930-Sep-09 6:24 
GeneralRe: POI ShrinkToFit Solution Pin
427748030-Sep-09 10:46
427748030-Sep-09 10:46 
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6930-Sep-09 23:18
professionalDaveyM6930-Sep-09 23:18 
GeneralRe: POI ShrinkToFit Solution Pin
42774801-Oct-09 9:43
42774801-Oct-09 9:43 
GeneralImage in Excel Header/Footer Solution Continuation Pin
42774803-Oct-09 4:13
42774803-Oct-09 4:13 
GeneralRe: Image in Excel Header/Footer Solution Continuation Pin
42774803-Oct-09 9:00
42774803-Oct-09 9:00 
Questionhow to set thread affinity in JAVA Pin
evyatar.v25-Sep-09 11:13
evyatar.v25-Sep-09 11:13 
AnswerRe: how to set thread affinity in JAVA Pin
427748025-Sep-09 19:29
427748025-Sep-09 19:29 
GeneralRe: how to set thread affinity in JAVA Pin
evyatar.v25-Sep-09 21:40
evyatar.v25-Sep-09 21:40 
GeneralRe: how to set thread affinity in JAVA Pin
427748026-Sep-09 0:05
427748026-Sep-09 0:05 
QuestionNeed help with hash table Pin
snssewell24-Sep-09 22:21
snssewell24-Sep-09 22:21 
AnswerRe: Need help with hash table Pin
427748025-Sep-09 0:39
427748025-Sep-09 0:39 
GeneralRe: Need help with hash table Pin
snssewell25-Sep-09 19:30
snssewell25-Sep-09 19:30 
QuestionRead SDF using Java Pin
jason975424-Sep-09 21:30
jason975424-Sep-09 21:30 
AnswerRe: Read SDF using Java Pin
427748025-Sep-09 0:36
427748025-Sep-09 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.