2

I have an excel file that pulls in data via data connection from bunch of CSV files. The CSV files are generated every now so often by a JAVA program.

Is it possible to refresh the data too via. JAVA program? I see JXCELAPI and JOI are there, but briefly looking at their documentation doesn't indicate my use case is even possible.

In short, I need API that could achieve this effect: clicking on menu Data->Refresh All.

Thanks, _Madhu

3 Answers 3

2

You could try XLLoop. This lets your spreadsheet talk directly to a java server (or a number of other languages) via function calls.

So you can have your spreadsheet call eg GetMyData("somedata") and it will load the data directly from your server whenever you re-calc (ie. Shift-F9).

BTW, I work on the project so let me know if you have any questions.

Sign up to request clarification or add additional context in comments.

Comments

1

This tutorial sounds like it might help: Accessing Excel from Java

Comments

0

You could also try Obba which is another solution to access a Java library via Excel cell functions (UDFs)...

However, what you describe could also be done by a very small vb/vba macro which checks/polls for modification of these CVS files. I don't know if this is suitable in your situation, but there is an event listener for that: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.changed.aspx#Y0

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.