Microsoft Certified Partner



SSC to Flash Released
Convert XLS to Flash
Try a completely new product! Generate a single, complete, stand-alone Flash file from your .xls(x)

Read more

SSC to ASP.NET BETA Released
Now, ASP.NET supports charts. Thanks to AJAX, looks exactly the same as the HTML and Flash versions.

Try today!

Customer Support
6 month free email support included.

If you have any presale questions, contact support.

Click here to contact customer support

Twitter

No browser plug-ins needed
Excel models are converted into stand-alone web pages.

If you use ASP, ASP.NET or Java/JSP, Excel models are converted into dynamic server-driven web pages.

The Flash plug-in is required for charts.


FAQ

New name of Excel- Everywhere is Spreadsheet- Converter
The name change does not affect your use of ExcelEverywhere.

Newsletter subscription
Enter your e-mail address to subscribe to our e-mail newsletter.
 
 Why?

This tutorial shows how you can initialize cell values in a spreadsheet stored on a server. You will need some basic programmer's skills to do this and a suitable web server technology, for example Classic ASP or PHP.

How to initialize cell values on the server

We have created a simple calculator, where an interest rate varies for every day. If we store the current interest rate in the spreadsheet, we have to regenerate the webpage every day.

The code in this tutorial can easily be enhanced so that the interest is taken from a database or any other live data source.

  1. Create a spreadsheet and generate the HTM-page using SpreadsheetConverter
  2. Move the file to a directory accessable from your web server, in this tutorial IIS.
  3. Rename the file from .htm to .asp



  1. Make sure that the webpage still works:



  1. Open the file in notepad, in my case ’notepad c:\inetpub\wwwroot\asp\asp-rate\asp-rate.asp’
  2. Insert the following first in the file:

<%

dim rate

rate = 0.07

%>

  1. Make sure that the page still works by opening http://localhost/asp/asp-rate/asp-rate.asp in a new browser window
  2. Search for ’;var cA2B=(0.05);’ and replace it by ;var cA2B=(<%= rate %>);
  3. Test the new version by opening http://localhost/asp/asp-rate/asp-rate.asp and enter 100 in the first cell. You will get 7.0000 as result.
  4. Notice that the form still says 5%. You will find the text 5% further down in the file. In order to get rid of this presentation of 5%, either hide row 2 or replace ’5’ by <%= rate*100 %> (Keep the %)

The files for this tutorial

  1. The Excel file: asp-rate.xls
  2. The HTML-file: asp-rate.htm
  3. The ASP-file: asp-rate.asp
  4. The ASP-file as a text file so that you can view it: asp-rate.txt

Printer-friendly