• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Unable to refresh Excel formula using POI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am unable to refresh formula value in Excel using POI HSSF API provided and none of the methods available in http://poi.apache.org/hssf/eval.html worked for me. May be i am doing wrong some where.
Below is Excel (Report.xls) contains information
Sheet
Num A1B1C1
1002001/11/2008 02:40
Result A1 B1 C1 D1 E1 F1 G1 H1
==Num!A1 =Num!B1 =Num!C1 =A1+B1 =A1-B1 =A1*B1 =A1/B1 ="Date value is "&C1




My requireent is to
1) Update A1 and B1 of "Num" sheet to 200 and 40
2) Evaluate the formulas in "Result" sheet and print the values in A1/B1/C1/D1/E1/F1/G1/H1 using java code.

Code is successfully executing but when i open excel manually, values are not updated in "Report" sheet where formulas reside. I want my java code to modify the values in formula cell.

Below is the java code i used to get the data.




Woking code is appreable.

Rerds,
M
 
Sheriff
Posts: 21821
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"m ma",

Please read your private messages regarding an important announcement.

Thank you,

Rob

Moving to the other open source forum.
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!