Use the following steps to add the client widget to a browser page.
JavaScript |
Copy Code
|
---|---|
<!DOCTYPE html> <html> <head> <title>Spread HTML test page</title> |
<script src="[Your_Scripts_Path]/gc.spread.sheets.all.xxxx.min.js" type="text/javascript"></script>
//<link href="[Your_CSS_Path]/gc.spread.sheets.xxxx.css" rel="stylesheet" type="text/css"/>
//OR
<link href="[Your_CSS_Path]/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="[Your_CSS_Path]/bootstrap/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
GC.Spread.Sheets.LicenseKey = “xxx”;
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> // Add your license GC.Spread.Sheets.LicenseKey = “xxx”; // Add your code window.onload = function(){ var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3}); var sheet = spread.getActiveSheet(); } </script> </head> <body> |
JavaScript |
Copy Code
|
---|---|
<div id="ss" style="height: 500px; width: 800px"></div> </body> </html> |