Shows an excel sheet in HTML format.
 

1 excel.Sheet.toHTML

<excel.Sheet.toHTML>
    <sheet /> +
</excel.Sheet.toHTML>
Example

A new document is created and three rows to fill of information. Below it is showed the html code which shows the result.

Copy
<xsql-script name='sample_excel_Sheet_toHTML'>
	<body>
		<set name='wb'>
		    <excel.Workbook />
		</set>
		<set name="sheet_1">
		    <excel.Workbook.createSheet name="Sheet 1">
		        <wb/>
		    </excel.Workbook.createSheet>
		</set>
		
		<set name="cell_r15c2">
		<excel.Sheet.createCell row="3" col="20">
		    <sheet_1/>
		</excel.Sheet.createCell>
		</set>
		
		<set name="cell_r3c3">
		<excel.Sheet.createCell row="3" col="3">
		    <sheet_1/>
		</excel.Sheet.createCell>
		</set>
		
		<!-- cell with string -->
		<excel.Cell.setCellValue>
		<cell_r15c2/>
		<string>TEXT</string>
		</excel.Cell.setCellValue>
		
		<!-- cell with string -->
		<excel.Cell.setCellValue>
		<cell_r15c2/>
		<string>3-3</string>
		</excel.Cell.setCellValue>
		
		<excel.Cell.setCellFormula>
		    <excel.Sheet.createCell row="4" col="1">
		        <sheet_1/>
		    </excel.Sheet.createCell>
		    <string>5*3</string>
		</excel.Cell.setCellFormula>
		
		<excel.Cell.setCellStyle css="font-size:20;">
		<wb/>
		<excel.Cell.setCellValue>
		    <cell_r3c3/>
		    <string>FONT SIZE: 20</string>
		</excel.Cell.setCellValue>
		</excel.Cell.setCellStyle>
		
		<println><excel.Sheet.toHTML><sheet_1/></excel.Sheet.toHTML></println>
	</body>
</xsql-script>