<CFX_GETIMAGE
DATASOURCE="db"
USER="dbUserName"
PASSWORD="dbPassword"
SQL="select filename FROM dbo.Attachment WHERE id = '#url.id#'"
OUTPUT="E:\inetpub\wwwroot\tempDocumentsFolder\#getAttachmentDetails.FileName#">
<CFHEADER NAME="Content-Type" VALUE="application/msexcel">
<CFHEADER NAME="Content-Disposition" VALUE="inline; filename=testDoc.xls">
<CFCONTENT TYPE="application/msexcel" FILE="E:\inetpub\wwwroot\testDocs.xls" deletefile="Yes">
The above code loads the document in a browser.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

