Re: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread Mark Mandel
Doh, I just realised you're not running apache, otherwise I would say use mod_xsendfile: http://tn123.ath.cx/mod_xsendfile/ Maybe there is something similar for IIS? Mark On Fri, Jun 18, 2010 at 8:49 AM, Dave Watts dwa...@figleaf.com wrote: In other applications I routinely use cfcontent

RE: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread UXB Internet
My advice for you would be to avoid using CFCONTENT for this, as it's really not designed for this. That was my feeling as well. I have always tried to stay away from much file manipulation with the CF engine since, as you say, it wasn't designed for it. The alternative I'd recommend

Re: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread Dave Watts
This was another thought as well but the issue there is moving those files back and forth programmatically with CF. I thought that it would use as much processor/threads as actually serving it up. Well, creating a symlink is a very easy thing, and it doesn't take nearly as long as serving a

RE: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread UXB Internet
Well, creating a symlink is a very easy thing, and it doesn't take nearly as long as serving a file Maybe I am misunderstanding this concept. Could you provide a loose example. Thanks. ~| Order the Adobe Coldfusion Anthology

Re: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread Dave Watts
Well, creating a symlink is a very easy thing, and it doesn't take nearly as long as serving a file Maybe I am misunderstanding this concept. Could you provide a loose example. A symlink is just a pointer. When you create one, you're allowing access to the file from two different locations

Re: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread William Attwood
Sent from my iPhone On Jun 17, 2010, at 4:49 PM, Dave Watts dwa...@figleaf.com wrote: In other applications I routinely use cfcontent to serve protected files on extranet applications however the traffic ( 10-20 files/day) is nowhere near as rigorous as will be required here

Re: Is there a way to replace the default HTTP header info with cfcontent?

2010-05-31 Thread Andrew Clarke
Thanks for your suggestion. I'm sure your solution would have worked but I started messing with getPageContext() and was able to use that to overwrite the existing headers. I found that by doing the following after cfcontent it corrected my problem. cfset getPageContext().getResponse

cfheader/cfcontent/IIS/SSL/IE resolved all by itself

2010-05-31 Thread Andrew Clarke
: cfheader name=Content-Disposition value=attachment; filename=test. doc cfcontent type=application/unknown file=c:\sites\test.doc I've tried using inline instead of attachment, and being more specific with the content type (i.e. application/msword) but nothing I'm doing is helping this work

Re: cfcontent with excel 2007

2010-01-04 Thread Steve Milburn
I have not tried this, but what if you change the cfcontent type to unknown? Like so: cfcontent type=unknown cfheader name=Content-Disposition value=filename=report.xlsx On Thu, Dec 31, 2009 at 2:37 AM, Christophe Maso zum...@hotmail.com wrote: Have seen a few posts around the web

Re: Cfcontent MS Excel 2007 errors?

2009-12-31 Thread Christophe Maso
I've had the same problem, although the file will open after the user clicks yes. I Looked to see if there's a different MIME type to use for .xlsx files vs. .xls files, and there is (see http://blogs.msdn.com/vsofficedeveloper/pages/Office-2007-Open-XML-MIME-Types.aspx). But using that mime

cfcontent with excel 2007

2009-12-31 Thread Christophe Maso
the correct MIME type for Excel 2007 (.xlsx) files is NOT vnd.ms-excel, but rather application/vnd.openxmlformats-officedocument.spreadsheetml.sheet . So, when the proper url var is passed to the page, I include these lines of code: cfcontent type=application/vnd.openxmlformats

Issue with cfcontent,cfheader and SSL and IE

2009-11-05 Thread Asaf Peleg
an example of the cfcontent/cfheader example below. Does anyone know a work around for this issue? CFCONTENT TYPE=application/msexcel reset=yes cfheader NAME=Content-Disposition VALUE=attachment; filename=TimberlineRprt_#DateFormat(month,'mm_yy')#.csv Thanks, Asaf

cfcontent create file

2009-10-14 Thread Richard White
hi we are using cfcontent and rich text to create a word doc as follows: cfcontent type=application/mswordcfoutput{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0 etc.../cfoutput however when we run the cfm page it brings up the download option, whereas we want to create the file and store

Re: cfcontent create file

2009-10-14 Thread James Holmes
You want cfsavecontent, not cfcontent. Write the contents of the cfsavecontent variable into a file with cffile. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/10/14 Richard White rich...@j7is.co.uk: hi we are using cfcontent and rich text to create

RE: cfcontent create file

2009-10-14 Thread Mark Kruger
Richard, You don't really need CFCONTENT (which actually sets up headers in the browser). You are not trying to send your content to the output buffer of IIS. Try cfsavecontent instead. cfsavecontent variable=content {\rtf1\ansi\ansicpg1252\uc1\deff0=stshfdbch0 etc... /cfsavecontent cffile

RE: cfcontent create file

2009-10-14 Thread Joshua Rowe
, Joshua Rowe -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Wednesday, October 14, 2009 8:57 AM To: cf-talk Subject: cfcontent create file hi we are using cfcontent and rich text to create a word doc as follows: cfcontent type=application/mswordcfoutput

Re: cfcontent create file

2009-10-14 Thread Richard White
thanks, that is exactly what we wanted richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: cfcontent create file

2009-10-14 Thread Ian Skinner
Joshua Rowe wrote: This should work for you: cfsavecontent variable=myContent This is the content that will go into my .doc file. This is a test. /cfsavecontent cffile action=write file=#Replace(ExpandPath('*.*'),'*.*','')#test.doc

Re: cfcontent create file

2009-10-14 Thread Rick Root
On Wed, Oct 14, 2009 at 12:32 PM, Ian Skinner h...@ilsweb.com wrote: But a 'doc' file type is a binary file type is it not?  In my experience you can't just write simple text to a with a doc extension and get anything useful.  I could see this working with an plain text (.txt) or rich text

cfcontent question

2009-07-28 Thread Susan Kelly
post. I had thought I would use cfcontent to display the image ... but when I do that, the blog text doesn't display. Does anyone know how to display an image from a non-web accessible location with some accompanying text

Re: cfcontent question

2009-07-28 Thread Alan Rother
The first question I would ask is Why do they want the images stored in a non-web-accessible location If the answer is something lame like, they don't want users to be able to download them, then you can get around this whole issue as you can tell them that there is no way to totally prevent a

serving images with cfcontent to firefox browser with deletefile=yes

2009-05-01 Thread UXB Internet
I am hoping someone can shine some light on a problem I am having with serving an image through cfcontent on a web page. I am using a CF5 server (all hotfixes applied) and doing some image manipulation (adding text) to an image. The back end image manipulation works fine (using Juka Manor's

Re: serving images with cfcontent to firefox browser with deletefile=yes

2009-05-01 Thread Ian Skinner
reset=true is always a good parameter to have when doing this kind of work. It helps even more to keep arrant whitespace from before the cfcontent... tag from causing problems. ~| Adobe® ColdFusion® 8 software 8 is the most

RE: serving images with cfcontent to firefox browser with deletefile=yes

2009-05-01 Thread UXB Internet
reset=true is always a good parameter to have when doing this kind of work. I agree but Reset=yes is the default and I have tried yes and no and even removed everything from the image.cfm file but the cfcontent tag and still there is something that Firefox refuses to render

Re: Binary output in CFContent ?

2009-02-19 Thread Robbie Byrd
Ok, I think what I hear is this: If a user actually clicks on a link to the word document, then you're calling it read. So that's easy. On your DocDisplay.cfm (which I'm assuming is the file with the cfcontent) put in a SQL insert there to mark the document as read, then use your cfcontent

RE: Binary output in CFContent ?

2009-02-18 Thread Ian Vaughan
page? Hope this makes sense? -Original Message- From: Robbie Byrd [mailto:rb...@mdimediagroup.com] Sent: 16 February 2009 20:47 To: cf-talk Subject: Re: Binary output in CFContent ? Hmmm Well, this is telling the browser to actually download the document. My only thought would

RE: Binary output in CFContent ?

2009-02-18 Thread Ian Vaughan
page? Hope this makes sense? -Original Message- From: Robbie Byrd [mailto:rb...@mdimediagroup.com] Sent: 16 February 2009 20:47 To: cf-talk Subject: Re: Binary output in CFContent ? Hmmm Well, this is telling the browser to actually download the document. My only thought would

Re: Binary output in CFContent ?

2009-02-16 Thread Robbie Byrd
, but it might work. Thanks I am using the following cfset user = listLast(cgi.REMOTE_USER,\) cfheader name=content-disposition value=attachment;filename=testdoc.doc cfcontent type=application/msword file=#ExpandPath(.)#\testdoc.doc deletefile=no to display word docs, but what would

Re: Binary output in CFContent ?

2009-02-16 Thread Justin Scott
Robbie Byrd wrote: Well, this is telling the browser to actually download the document. My only thought would be to do an inline word document with a frameset and have a frame at the top with your checkbox. I'm not exactly sure that's what you're looking for or even the most portable

RE: Binary output in CFContent ?

2009-02-13 Thread Ian Vaughan
Thanks I am using the following cfset user = listLast(cgi.REMOTE_USER,\) cfheader name=content-disposition value=attachment;filename=testdoc.doc cfcontent type=application/msword file=#ExpandPath(.)#\testdoc.doc deletefile=no to display word docs, but what would be the best

Binary output in CFContent ?

2009-02-12 Thread Ian Vaughan
Hi I am using the following code to display a word document, but in the browser all that is displayed is binary code? snippet titleUntitled Document/title cfheader name=content-disposition value=attachment;filename=testdoc.doc /head body cfcontent type=application

Re: Binary output in CFContent ?

2009-02-12 Thread Robbie Byrd
name=content-disposition value=attachment;filename=testdoc.doc cfcontent type=application/msword file=#ExpandPath(.)#\testdoc.doc deletefile=yes -Robbie Hi I am using the following code to display a word document, but in the browser all that is displayed is binary code? snippet

How are CFCONTENT requests handled?

2009-02-06 Thread Seb Duggan
/ cfcontent type=image/jpeg file=#ExpandPath(press-image.jpg)# / What I want to know is: if I'm serving the file in this method, does CF load the image into memory and then serve it? Or does it just point the browser to the relevant location? The reason I ask is that some of the images are up

RE: How are CFCONTENT requests handled?

2009-02-06 Thread Adrian Lynch
CF will be used for the duration of that request. I'd be interested in hearing a solution to this also. Adrian -Original Message- From: Seb Duggan [mailto:s...@sebduggan.com] Sent: 06 February 2009 11:49 To: cf-talk Subject: How are CFCONTENT requests handled? I'm putting

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Nathan Strutz
; filename=press- image.jpg / cfcontent type=image/jpeg file=#ExpandPath(press-image.jpg)# / What I want to know is: if I'm serving the file in this method, does CF load the image into memory and then serve it? Or does it just point the browser to the relevant location? The reason I ask

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Seb Duggan
Thanks Nathan. I'm currently trying to work out a solution using ISAPI_Rewrite to modify the headers, but can't quite get it to work yet... On 6 Feb 2009, at 20:29, Nathan Strutz wrote: Seb, It is most likely that CF will open the file you are delivering, however, it will probably

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Brian Kotek
The issue isn't memory usage as much as it is thread usage. A server thread will be occupied for the entire duration of the download. Which means if you have large files, and 50 people are downloading, then that is 50 of your threads used for however long it takes their downloads to complete. The

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Brian Kotek
Or, depending on the version of CF8 and your familiarity with it, you could look at using CFTHREAD since those use a separate thread pool. On Fri, Feb 6, 2009 at 6:08 PM, Brian Kotek brian...@gmail.com wrote: The issue isn't memory usage as much as it is thread usage. A server thread will be

Re: CFContent and PDF problems

2009-01-21 Thread Ken Willis
I have had this problem before. My extremely low tech solve was to shutdown browser and then remove adobe from memory through the task manager. hope this helps. ~| Adobe® ColdFusion® 8 software 8 is the most important and

Cfcontent MS Excel 2007 errors?

2008-12-04 Thread Kenny Kinds
I'm using cfcontent to generate reports in MS Excel. Previously the useres had MS Excel 2003 to open the files, but now, some have upgraded to MS excel 2007 and they are getting error messages. They are along the lines of The xxx.cfm file you are attempting to download is incompatible

Re: cfcontent downloads and IE

2008-08-28 Thread tali tsarfati
... but when I click the yellow bar and select Download File, nothing happens Even in second attemp THANKS Tali Hello, I am trying to use cfcontent to make an excel sheet and in Internet Explorer 7 the yellow bar at the top does it's thing and says To help protect your security, IE has blocked

CFContent tag

2008-08-16 Thread Nathan Chen
Hi, All: I have a query that selects a BLOB field (embedded file) from a table. Then I use cfcontent to output the string to the browser. The code has running fine until today all of a sudden it won't display the files. All the files in that BLOB field are pdf files. The code looks like

Re: CFContent tag

2008-08-16 Thread Brad Wood
PM Subject: CFContent tag Hi, All: I have a query that selects a BLOB field (embedded file) from a table. Then I use cfcontent to output the string to the browser. The code has running fine until today all of a sudden it won't display the files. All the files in that BLOB field are pdf

Re: CFContent tag

2008-08-16 Thread James Holmes
First, check that your datasource has the enable BLOB checkbox ticked. On Sun, Aug 17, 2008 at 11:44 AM, Nathan Chen wrote: Hi, All: I have a query that selects a BLOB field (embedded file) from a table. Then I use cfcontent to output the string to the browser. The code has running fine

RE: CFContent tag

2008-08-16 Thread Nathan Chen
That's it. I can't believe I forgot to turn enable BlOB when I updated the dsn today. Thank you! Nathan -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2008 9:47 PM To: CF-Talk Subject: Re: CFContent tag First, check that your datasource has

PDF delivery via CFContent in IE7 ... doesn't.

2008-07-28 Thread Matt Robertson
This is driving me nuts. It works great in Safari, FF and, up until recently, in IE. Server is CF 6.1 I have to serve up pre-existing pdf files stored off the web root and pushed to the authenticated visitor via cfcontent. User clicks on link located at foo.cfm: a href=bar.cfm?FileIs

Re: PDF delivery via CFContent in IE7 ... doesn't.

2008-07-28 Thread Will Tomlinson
This is driving me nuts. It works great in Safari, FF and, up until recently, in IE. Server is CF 6.1 I could swear I ran into this same thing with WMV's. IE7 wasn't set as default for that file type. I had to go in and change IE7's settings before it would shoe the movie. Otherwise, I

Re: PDF delivery via CFContent in IE7 ... doesn't.

2008-07-28 Thread Matt Robertson
I had to go in and change IE7's settings before it would shoe the movie You mean Windows' settings, right? I don't know anywhere where IE7 does file type support, although that doesn't mean its not hiding somewhere inside. Since I have the full Acrobat (5) on my desktop unit, I'll try it on

Re: PDF delivery via CFContent in IE7 ... doesn't.

2008-07-28 Thread Will Tomlinson
I had to go in and change IE7's settings before it would shoe the movie You mean Windows' settings, right? I don't know anywhere where IE7 does file type support, although that doesn't mean its not hiding somewhere inside. Since I have the full Acrobat (5) on my desktop unit, I'll try it on

Is it possible to access network drives with CFDIRECTORY and CFCONTENT

2008-07-10 Thread Arden Weiss
I seem to not be able to access a mapped network drive with CFDIRECTORY and CFCONTENT. The CF7 app needs to be able to access/manage a store of PDF files and display them in the user's browser. Everything works great as long as the PDF files are located in a folder on a drive directly

RE: Is it possible to access network drives with CFDIRECTORY and CFCONTENT

2008-07-10 Thread Bobby Hartsfield
and cfcontent specifically when I get into the office today and let you know the results -Original Message- From: Arden Weiss [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 2:46 AM To: CF-Talk Subject: Is it possible to access network drives with CFDIRECTORY and CFCONTENT I seem

RE: Is it possible to access network drives with CFDIRECTORY and CFCONTENT

2008-07-10 Thread Peterson, Chris
permissions to anything it needs to access. Chris Peterson -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 6:57 AM To: CF-Talk Subject: RE: Is it possible to access network drives with CFDIRECTORY and CFCONTENT I haven't done

When using streaming server and serving file using cfcontent, is...

2008-07-10 Thread Karen Jones
When using a streaming server and serving a file using cfcontent, is the CF engine busy the entire time the file is being served, or does the thread terminate and the web server then does the streaming? ~| Adobe® ColdFusion® 8

RE: When using streaming server and serving file using cfcontent, is...

2008-07-10 Thread Dave Watts
When using a streaming server and serving a file using cfcontent, is the CF engine busy the entire time the file is being served, or does the thread terminate and the web server then does the streaming? If you serve a file using CFCONTENT, you aren't using a streaming server for that file

Re: alternatives to cfcontent to allow large downloads

2008-06-10 Thread George Abraham
Instead of using CFCONTENT, you can use CF to create a temporary URL, then let your web server serve the file directly. For example, you could use CFEXECUTE to create a symlink to a directory containing the file, then after an hour (or whatever time you deem appropriate) you could delete

Re: alternatives to cfcontent to allow large downloads

2008-06-10 Thread Gerald Guido
://www.webdevref.com/blog/ Adam also did a presentation on his expereinces that can be found on this page: http://coldfusion.meetup.com/17/files/ This should keep you busy for a bit ;) G$ On Tue, Jun 10, 2008 at 9:22 AM, George Abraham [EMAIL PROTECTED] wrote: Instead of using CFCONTENT, you

Re: alternatives to cfcontent to allow large downloads

2008-06-10 Thread Gerald Guido
Actually the presentation is on this page: http://coldfusion.meetup.com/17/calendar/6620698/?from=listoffset=30 Good stuff G On Tue, Jun 10, 2008 at 9:37 AM, Gerald Guido [EMAIL PROTECTED] wrote: I have been looking at there stuff for a while for a my next dot bomb. Barney seems to like it

alternatives to cfcontent to allow large downloads

2008-06-09 Thread George Abraham
Hi all, CFMX 7 Enterprise on IIS and Win 2003. Relatively medium traffic website, probably about 200 or so downloads a day, ranging from 1MB to 1GB or so. This is expected to double every 3 months or so. I read that cfcontent utilizes a single thread for the duration of a file download. I also

Re: alternatives to cfcontent to allow large downloads

2008-06-09 Thread Barney Boisvert
of time. So someone requests your asset, and instead of serving it with CFCONTENT, you redirect them to S3 with a URL that's only good for a handful seconds. I do this for a few different things, and it works like a charm. It also offloads the bandwidth from my infrastructure to Amazon's. You might

Re: alternatives to cfcontent to allow large downloads

2008-06-09 Thread Gerald Guido
I have done cfcontent style download using PHP years ago. I am not sure it this will help you solve your problem, but it may be a viable alternative. I got the idea from working with OSCommerce http://oscommerce.org/ OSCommerce has a module that allow ppl buy and DL software and has a working

Re: alternatives to cfcontent to allow large downloads

2008-06-09 Thread George Abraham
be accessed by secured URLs that are only accessible for a narrow window of time. So someone requests your asset, and instead of serving it with CFCONTENT, you redirect them to S3 with a URL that's only good for a handful seconds. I do this for a few different things, and it works like

Re: alternatives to cfcontent to allow large downloads

2008-06-09 Thread Barney Boisvert
On Mon, Jun 9, 2008 at 12:34 PM, George Abraham [EMAIL PROTECTED] wrote: I could look, but what does S3's usage policy say about that kind of offloading? This use case is exactly the point of S3's existence. It's redundant, scalable, and ridiculously inexpensive. Does that also mean that the

Re: alternatives to cfcontent to allow large downloads

2008-06-09 Thread George Abraham
On Mon, Jun 9, 2008 at 12:34 PM, George Abraham [EMAIL PROTECTED] wrote: I could look, but what does S3's usage policy say about that kind of offloading? This use case is exactly the point of S3's existence. It's redundant, scalable, and ridiculously inexpensive. OK, I got off my butt

RE: alternatives to cfcontent to allow large downloads

2008-06-09 Thread Dave Watts
I read that cfcontent utilizes a single thread for the duration of a file download. Yup. The question is: are there any other alternatives? I could initialize another instance and make it handle only the download requests, but can't really guess at the long-term viability

RE: alternatives to cfcontent to allow large downloads

2008-06-09 Thread Aaron Wolfe
files like .hex and .e14. -Aaron -Original Message- From: George Abraham [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2008 2:50 PM To: CF-Talk Subject: alternatives to cfcontent to allow large downloads Hi all, CFMX 7 Enterprise on IIS and Win 2003. Relatively medium traffic website

cfcontent gives my domainname instead of jpeg

2008-04-08 Thread marc --
Hi, If I do this: cfhttp method=get url=http://images.realworks.nl/servlets/images/media.objectmedia/3803552?width=161height=121; getasbinary=auto result=result/ cfcontent type=image/jpg cfoutput#result.Filecontent#/cfoutput I should get a picture of a house for sale.Instead I get a picture

RE: cfcontent gives my domainname instead of jpeg

2008-04-08 Thread Adrian Lynch
Try: cfhttp method=get url=http://images.realworks.nl/servlets/images/media.objectmedia/3803552?wi dth=161height=121 getasbinary=auto result=result/ cfcontent type=image/jpg cfcontent reset=truecfoutput#ToString(result.Filecontent)#/cfoutputcfabort Adrian http://www.adrianlynch.co.uk

Re: cfcontent gives my domainname instead of jpeg

2008-04-08 Thread marc --
Hi Adrian, that (ToString) works. With it I get the picture, without it I get my domainname as a pict. Is there some logic behind this? If I save the result.FileContent (a binary stream) to a txt file there is all kind of text but not the domainname. Somehow it is there so that it gets

Re: cfcontent gives my domainname instead of jpeg

2008-04-08 Thread James Holmes
ToString converts the binary into a text encoding so that it can be sent to the browser. Without it you're probably getting the result of an error handler, as binary data can't be directly output without converting to a string and this will be causing an exception. On Tue, Apr 8, 2008 at 9:47 PM,

RE: cfcontent downloads and IE

2008-02-04 Thread Bobby Hartsfield
Isn't it application/msexcel ? ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 11:26 AM To: CF-Talk Subject: cfcontent downloads and IE Hello, I am trying to use cfcontent

cfcontent downloads and IE

2008-02-04 Thread Chad Gray
Hello, I am trying to use cfcontent to make an excel sheet and in Internet Explorer 7 the yellow bar at the top does it's thing and says To help protect your security, IE has blocked this site from downloading files blah blah blah. I click the yellow bar and select Download File

Re: cfcontent - excel - numbers beginning with 0

2007-09-14 Thread Terry Schmitt
You state that you are creating an Excel file... Is that an actual Excel binary file or is it a CSV file? As Barney stated, Excel isn't going to allow a number with leading zeros. You can format to display zeros in any app including Excel, but formatting and actual data content are 2 different

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread Scott Weikert
Dunno how to do this from CF, but Excel allows you to set a format for a cell. So if you set the cell format as 'text', it won't strip the leading zeros. I just fired up Excel, set one column as a 'text' format, the next untouched, and typed in '01234' in both. The first one (text column)

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread Barney Boisvert
Within Excel itself, prefixing a numberish value with an apostrophe will make it render as a string (and be absolved from zero-trimming). Did you try that? cheers, barneyb On 9/13/07, andy mann [EMAIL PROTECTED] wrote: I am creating an excel file in cf7 and all works well except when a part

cfcontent - excel - numbers beginning with 0

2007-09-13 Thread andy mann
I am creating an excel file in cf7 and all works well except when a part number begins with a 0 - i need the number to always have 5 digits as in 01234 or 12345. i have tried doing a Numberformat(partnum, '0') to no avail. can i force using TabChar or something? noticed the the field in

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread andy mann
Within Excel itself, prefixing a numberish value with an apostrophe will make it render as a string (and be absolved from zero-trimming). Did you try that? cheers, barneyb -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites.

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread andy mann
tnx bb, as the visitor will be importing excel file into their acctg software, field must remain numeric... also anyone know how to apply col width as seems to default to 48px tnx again Within Excel itself, prefixing a numberish value with an apostrophe will make it render as a string (and

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread andy mann
bb, tnx problem is that field must remain numeric... also anyone know how to reset default col width when excel file generated? ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles

Re: cfcontent - excel - numbers beginning with 0

2007-09-13 Thread Barney Boisvert
You've got a bit of a contradiction in your statements. If it MUST remain numeric, then it's a number, and you can't care about leading zeros because from a numeric perspective 123 and 0123 are identical. If you do care about the leading zeros, then you can't be dealing with a numeric context,

Re: cfcontent

2007-07-25 Thread Ben Doom
Use cfheader and cfcontent to set they data type, reset the output, etc. Then just print the XML. If you really need to FORCE them to download it (something I'd not recommend), you could always misset the MIME type to something like application/octet-stream. --Ben Doom Chad Gray wrote: I

cfcontent

2007-07-24 Thread Chad Gray
I want cfcontent to take xml data from a query and force the user to download it as an XML file. Any tips? I keep getting a CF Error if I put the xml in the variable attribute of cfcontent. java.lang.String is not a supported variable type. The variable is expected to contain binary data

Re: cfcontent

2007-07-24 Thread Ian Skinner
You don't put it in the variable paramter, but rather between the tags. cfcontent#myXMLString/cfcontent You will probably want to provide the proper content headers with cfheader... tags before this. ~| Enterprise web

RE: cfcontent

2007-07-24 Thread Ben Nadel
Chad, Variable only take binary values. Good news - you can easily convert string to binary: cfcontent type=text/xml variable=#ToBinary( ToBase64( 'YOUR_STRING' ) )# / .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help

RE: cfcontent

2007-07-24 Thread Chad Gray
; filename=test 1234.xml cfcontent type=application/xml cfoutput#getZJF.ZJF#/cfoutput /cfcontent How do I get firefox and IE to write out the correct file name? Thanks again! Chad -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 5:12

RE: cfcontent

2007-07-24 Thread Ben Nadel
? www.bennadel.com/ask-ben/ -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 5:26 PM To: CF-Talk Subject: RE: cfcontent Thanks Ian and Ben, I got is working now. Next question. Firefox does not like the fact that the file name has spaces

RE: cfcontent

2007-07-24 Thread Chad Gray
Hah! Brilliant! Thanks Ben! -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 5:29 PM To: CF-Talk Subject: RE: cfcontent No worries: cfheader name=Content-Disposition value=attachment; filename=test 1234.xml Wrap file name in double quotes

RE: cfcontent

2007-07-24 Thread Ben Nadel
[mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 5:35 PM To: CF-Talk Subject: RE: cfcontent Hah! Brilliant! Thanks Ben! ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http

Re: cfcontent

2007-07-24 Thread Ian Skinner
Use the URL encoding for a space [%20] perhaps? cfheader name=Content-Disposition value=attachment; filename=test%201234.xml But spaces in file names should usually be avoided when possible in web applications. ~| Check

RE: cfcontent

2007-07-24 Thread Chad Gray
- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 5:40 PM To: CF-Talk Subject: Re: cfcontent Use the URL encoding for a space [%20] perhaps? cfheader name=Content-Disposition value=attachment; filename=test%201234.xml But spaces in file names should usually be avoided when

Re: cfcontent excel session and url variables

2007-04-13 Thread William Burba
Good Afternoon, Thank you all for your replies. Initially, taking out the cfcontent tags did not yield any negative results. The page came back fine to the browser. Putting the tags back on, and looking at the log files more or less confirmed what was happening, I just don't know why

Cfcontent - One record to CSV Problem

2007-04-13 Thread Raj Vijay
All, I am using the following code (taken from http://www.tom-muck.com/ ) to generate csv file. cfparam name=attributes.rs cfset c=attributes.rs.ColumnList/ cfset cc = listqualify(#c#,'',,,all) CFHEADER NAME=Content-DispositionVALUE=attachment;filename=#attributes.filename# CFCONTENT TYPE

RE: cfcontent excel session and url variables

2007-04-08 Thread Jaime Metcher
Also check your exception log. Even if an error does make it to the browser it should be logged there. Jaime Metcher -Original Message- From: Kris Jones [mailto:[EMAIL PROTECTED] Sent: Saturday, 7 April 2007 6:58 AM To: CF-Talk Subject: Re: cfcontent excel session and url variables

cfcontent excel session and url variables

2007-04-06 Thread William Burba
A question relating to cfcontent and session variables, with a hint of URL variables. We are migrating from a relatively open system to one that has a login and session management. We have stumbled across something that seems to be behaving oddly, though I don't know why. We have

Re: cfcontent excel session and url variables

2007-04-06 Thread Kris Jones
. The way we fixed it was to run the report with the cfcontent/cfheader commented out, and see the actual CF error, fix it, uncomment the cfcontent/cfheader and run it again. In every case, we were able to fix the problem. Usually it was a reference to an undefined variable causing the problem. Also

CFCONTENT HTTPS

2007-04-05 Thread ally mccluskey
; } /cfscript cfparam name=URL.DIR default=docs cfset thisFile = URLDecode(URL.file) cfheader name=content-disposition value='inline; filename=#thisFile#' CFCONTENT file=#application.PSsavepath#\#URL.dir#\#thisFile# TYPE=#udfFileMimeType(thisFile)# /cfsilent

Re: Cfcontent type=application/word style ignored??

2007-03-30 Thread Jochem van Dieten
Ben Nadel wrote: I find that word (as web page) puts 3D in front of each of it attributes: p style=3Dcolor:black; Here is text /p I think it is 3D but it might be something else. =3D is the representation of the equals sign = in quoted-printable encoding. = is the escape

RE: Cfcontent type=application/word style ignored??

2007-03-30 Thread Ben Nadel
PROTECTED] Sent: Friday, March 30, 2007 4:06 AM To: CF-Talk Subject: Re: Cfcontent type=application/word style ignored?? Ben Nadel wrote: I find that word (as web page) puts 3D in front of each of it attributes: p style=3Dcolor:black; Here is text /p I think it is 3D but it might

Cfcontent type=application/word style ignored??

2007-03-29 Thread John
I'm outputting a word file and all of my style rules are ignored such as font-family, font-size etc...Any idea how get Word to use my style rules? Thanks! ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving

RE: Cfcontent type=application/word style ignored??

2007-03-29 Thread Ben Nadel
Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 6:11 PM To: CF-Talk Subject: Cfcontent type=application/word style ignored?? I'm

Re: Cfcontent type=application/word style ignored??

2007-03-29 Thread Adrien Akkhazza R. Cardoso
are on the same page , or via link ... or @include ? I used : CFHEADER NAME=Content-Disposition VALUE=INLINE; FILENAME=file.doc CFCONTENT TYPE=application/msword cfoutput html head style type=text/css classes and etc. /style /head body . /body /html /cfoutput John wrote: I'm outputting a word file

<    1   2   3   4   5   6   7   8   9   10   >