Supported Office Conversion Formats - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Office file interoperability
<cfspreadsheet
action = "read"
src="C:\dcuments\template_02.xls"
query="excelquery"
sheet="1"
rows="1-3,4-5"
columns="1,4">
<cfoutput
query="excelquery"
startrow="1"
maxrows="#excelquery.recordcount#">
#excelquery.col_1#
#excelquery.col_2#
</cfoutput>
The following example reads a spreadsheet file - template_08_Charts_Graph.xls and stores the spreadsheet data in an
HTML string.
<cfspreadsheet
action = "read"
format="html"
src="C:\documents\template_08_Charts_Graph.xls"
name="report1"
rows="5-11"
columns="1-6">
<cfoutput>
#report1#
</cfoutput>
The following example uses data from a query and writes it to a single sheet in the spreadsheet file - SingleSheet1.xls
<cfquery
name="excelquery"
datasource="cfdocexamples">
SELECT PARKNAME, REGION, STATE FROM Parks WHERE STATE='WI'
ORDER BY ParkName, State
</cfquery>
<cfspreadsheet
action = "write"
filename="C:\SingleSheet1.xls"
query="excelquery"
overwrite="true">

Supported Office conversion formats

The following table lists the conversion formats supported by Office applications, and the CFML tags that support the
conversion. It also shows whether OpenOffice installation is required for the conversion.
All versions of Microsoft Word and Microsoft PowerPoint from 97 to 2003 are supported. Also, all versions of
Microsoft Excel from Versions 97 to 2007 are supported.
Last updated 1/20/2012
893

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents