aspose file tools*
The moose likes Java in General and the fly likes Please help for this Problem in creating excel sheet using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Please help for this Problem in creating excel sheet using java" Watch "Please help for this Problem in creating excel sheet using java" New topic
Author

Please help for this Problem in creating excel sheet using java

Ifteqar Ahmed
Ranch Hand

Joined: May 02, 2011
Posts: 85

Hi,

I am creating an excel file with my java code.

Here is the code




This should create 20 cells in the excel sheet but its not working properly


Please help....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41579
    
  54
What does "it's not working properly mean"? What, exactly, does happen? Seeing an SSCCE would help.


Ping & DNS - my free Android networking tools app
Ifteqar Ahmed
Ranch Hand

Joined: May 02, 2011
Posts: 85

Hi Ulf,

The statement at line 10 is displaying

3.41
5.55
4.79
1.92
1.86
2.68
1.24
1.21
1.54
1.53
1.59
1.5
1.27
1.28
1.34
1.89
3.56
1.33
2.9

but these values are not getting published in excel sheet

In excel sheet i am getting these values at row 1

2.9 3.55 1.26 1.27 1.34 2.68 1.24 1.21 1.52 1.52

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41579
    
  54
Without seeing an SSCCE it's hard to tell what's going on. What is "s", for example?

Also, what are the for loop and the if statement supposed to do? The while loop already takes care of iterating over all elements of "stk".
Ifteqar Ahmed
Ranch Hand

Joined: May 02, 2011
Posts: 85

Here is my complete code





Here is the complete code..........
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41579
    
  54
So what's the output of the stack traces?

Note that the second while loop is pointless, as it will never loop.
Ifteqar Ahmed
Ranch Hand

Joined: May 02, 2011
Posts: 85

Hi Ulf,

Thank You very much. My program is working fine after removing that for loop.

Here is the modified code



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help for this Problem in creating excel sheet using java