Click here to Skip to main content
15,902,114 members
Home / Discussions / Java
   

Java

 
Questionlocation-awareness simulation project Pin
simbarashe gumbo28-Jun-12 3:41
simbarashe gumbo28-Jun-12 3:41 
AnswerRe: location-awareness simulation project Pin
Peter_in_278028-Jun-12 3:48
professionalPeter_in_278028-Jun-12 3:48 
AnswerRe: location-awareness simulation project Pin
TorstenH.28-Jun-12 19:03
TorstenH.28-Jun-12 19:03 
AnswerRe: location-awareness simulation project Pin
CodingLover2-Jul-12 15:54
CodingLover2-Jul-12 15:54 
AnswerRe: location-awareness simulation project Pin
Paul Conrad2-Jul-12 17:50
professionalPaul Conrad2-Jul-12 17:50 
Questionto open an excel file and write Pin
prithaa27-Jun-12 21:50
prithaa27-Jun-12 21:50 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan27-Jun-12 22:31
mveRichard MacCutchan27-Jun-12 22:31 
GeneralRe: to open an excel file and write Pin
prithaa27-Jun-12 23:05
prithaa27-Jun-12 23:05 
thanks

but the above link is not opening
my problem was the following

InputStream inp = new FileInputStream("d:/Writefile.xls");    
		WorkbookSettings ws = new WorkbookSettings();
		Workbook wb = Workbook.getWorkbook(inp, ws);
		Sheet sheet = wb.getSheet(0);  
		//Cell cells[] = sheet.getRow(0);     
		//Cell cell = cells[0];
		//String cellContents = cell.getContents(); 
		//Modify the cellContents here     
		//Write the output to a file 		
		Number number;
		number = new Number(0, 0, 453.25, times);
		((WritableSheet) sheet).addCell(number);
		wb.close();


The above code doesnt add the cell to the given file just opens the file.I get DispatchUnCaughtException for the line
((WritableSheet) sheet).addCell(number);



Thanks for the reply

Pritha
GeneralRe: to open an excel file and write Pin
Richard MacCutchan27-Jun-12 23:22
mveRichard MacCutchan27-Jun-12 23:22 
GeneralRe: to open an excel file and write Pin
prithaa27-Jun-12 23:33
prithaa27-Jun-12 23:33 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan28-Jun-12 0:09
mveRichard MacCutchan28-Jun-12 0:09 
GeneralRe: to open an excel file and write Pin
prithaa28-Jun-12 20:21
prithaa28-Jun-12 20:21 
GeneralRe: to open an excel file and write Pin
Anil Kumar 2328-Jun-12 22:12
Anil Kumar 2328-Jun-12 22:12 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan28-Jun-12 22:19
mveRichard MacCutchan28-Jun-12 22:19 
GeneralRe: to open an excel file and write Pin
prithaa29-Jun-12 0:04
prithaa29-Jun-12 0:04 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan29-Jun-12 0:12
mveRichard MacCutchan29-Jun-12 0:12 
GeneralRe: to open an excel file and write Pin
prithaa29-Jun-12 3:01
prithaa29-Jun-12 3:01 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan29-Jun-12 6:57
mveRichard MacCutchan29-Jun-12 6:57 
GeneralRe: to open an excel file and write Pin
prithaa1-Jul-12 21:15
prithaa1-Jul-12 21:15 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan1-Jul-12 22:05
mveRichard MacCutchan1-Jul-12 22:05 
QuestionTesting in Mockito Pin
Chris_B8426-Jun-12 22:45
Chris_B8426-Jun-12 22:45 
AnswerRe: Testing in Mockito Pin
CodingLover2-Jul-12 15:56
CodingLover2-Jul-12 15:56 
Questionproblem in handling multithreading java Pin
praveen260924-Jun-12 20:16
praveen260924-Jun-12 20:16 
QuestionRe: problem in handling multithreading java Pin
Richard MacCutchan24-Jun-12 22:52
mveRichard MacCutchan24-Jun-12 22:52 
GeneralRe: problem in handling multithreading java Pin
praveen260924-Jun-12 22:58
praveen260924-Jun-12 22:58 

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.