Join us for a quick tour of how you can use SpreadsheetConverter.

SpreadsheetConverter editions and prices.

Try the program for free in your own PC. Download and install this plug-in for Excel in Windows.

E-mail us your spreadsheet, and we will e-mail you the converted webpage for free. No installation or credit card required.

Visit our examples library to learn more about what the product can do for you.

Compare the different editions of the product to see which one is best for you.

If you need help during the free trial or as a paid customer, just contact our Help Center.

Customer Support
6 month free email support.

Click here to contact customer support
Lost license key
I lost my license key, do I have to purchase a new license?
No, contact sales using the email address you used when you purchased, and we will send you the key.
Where is the non-trial version?
The trial version and the licensed version of SpreadsheetConverter are the same program. By entering the license key, the trial program converts itself into the full version.
FAQ
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