Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

Can anyone please tell me how to refresh an excel sheet without opening it.
For my project i have an excel file as a database. However the data in the excel file will refresh only if it is opened, saved and closed.
Now the problem is that i have to display the real time data from this excel file on a webpage.
Please help..

Regards
Kishor
Posted

1 solution

The only way to do this that I know of is to do the following:
1. Use a service to periodically use the Web Services API to open the file in Excel Services.
2. Call the RefreshAll() method.
3. Call GetWorkbook()
4. Use SharePoint API to save back to the document library.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900