Question : How do I write data to separate excel worksheets in coldfusion?

How do I write data to separate excel worksheets in coldfusion?

Answer : How do I write data to separate excel worksheets in coldfusion?

Wow ... I can't imagine blocking blogs. Technical blogs are an invaluable resource IMO. Granted not all of them are "work friendly" ...

Here's the code snippet from the first link (XML method). The other one is too much to post. Plus you'd need additional files to use it.  So I'll let you check it out at home.

From http://cfsilence.com/blog/client/index.cfm/2006/7/19/Creating-Multiple-Tabs-in-Excel-with-Coldfusion
<cfsetting showdebugoutput="false">
<cfheader name="content-disposition" value="inline;filename=ExcelWithMultipleWorksheets.xls">
<cfcontent type="application/msexcel">
<?xml version="1.0"?>
<Workbook
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">

    <Worksheet ss:Name="Worksheet 1">
        <Table>
            <Row>
                <Cell ss:Index="1"><Data ss:Type="String">Test Data 1</Data></Cell>
            </Row>
        </Table>
    </Worksheet>
   
    <Worksheet ss:Name="Worksheet 2">
        <Table>
            <Row>
                <Cell ss:Index="1"><Data ss:Type="String">Test Data 2</Data></Cell>
            </Row>
        </Table>
    </Worksheet>
       
</Workbook>
Random Solutions  
 
programming4us programming4us