Shows an excel sheet with the OWC component.

1 excel.Sheet.toOWC

<excel.Sheet.toOWC
    classid='classid'
    xcols='xcols'
    ycols='ycols'
    dcols='dcols'
>
    <sheet /> +
</excel.Sheet.toOWC>
Example

Generate a OWC from a EXCEL sheet which is generated through a SELECT.

Copy
<xsql-script name='sample_excel_Sheet_toOWC'>

	<body>
		<set name='wb'>
		    <excel.Workbook />
		</set>
		
		<set name="sheet_1">
		    <excel.Workbook.createSheet name="Sheet 1">
		        <wb/>
		    </excel.Workbook.createSheet>
		</set>
		
		<excel.Cell.setCellValueSQL threed='true'>
		    <sheet_1 />
		    <excel.Sheet.createRow row='0'>
		        <sheet_1 />
		    </excel.Sheet.createRow>
		    <excel.Sheet.createCell row="0" col="0">
		        <sheet_1/>
		    </excel.Sheet.createCell>
		    <string>SELECT tipdoc,tercer,SUM(imptot) from gcompedh GROUP BY 1,2</string>
		</excel.Cell.setCellValueSQL>
		
		<return>
		   <excel.Sheet.toOWC head='false' ycols='0,1' dcols='2' classid='0002E55A-0000-0000-C000-000000000046'>
		       <sheet_1 />
		   </excel.Sheet.toOWC>
		</return>
	</body>

</xsql-script>