Howdy --

I've been playing around with making CF output Excel spreadsheets containing 
JPEGs.  As best as I can tell, Excel leaves
the actual JPEGs as external objects and stores only references to the source 
objects in the .xls file itself.  Every
time the spreadsheet is (re-)opened in Excel, the sources are 
re-accessed/re-loaded, too.

Presuming one did a cffile action="read" to read a JPEG file's full datastream 
into a CF variable, is it possible to
directly embed an actual JPEG in the .xls file, and if so, how would the 
following standard code for outputting an Excel
spreadsheet via CF be modified to do so?

<cfsetting enablecfoutputonly="Yes">
<cfcontent type="application/msexcel">
<cfheader name="Content-Disposition" value="filename=photos.xls">
<cfoutput>
  <table cols="2">
    <tr><td>Apple</td><td>picture of an apple</td></tr>
    <tr><td>Orange</td><td>picture of an orange</td></tr>
  </table>
</cfoutput>

-- Larry Afrin
   Medical University of South Carolina
   [EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:245877
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to