I've got an application that I've been developing on a standalone server for a while, and now that I've moved the application into our staging environment I've run into a problem. Our staging environment is running in distributed mode. I have a few templates that generate PDF documents for printable reports. The way I have it working at the moment, is that the user clicks a link on a page to generate a report, the PDF file (report) is generated in the background and written to a reports folder, and then the user is presented with a page that has a link for them to click which points to the PDF file for them to open it.

The problem I have now is the fact that in distributed mode, the PDF file is being written to the reports folder on the ColdFusion server, but NOT on the web server front end, which is where the link points to, so when the user clicks on the link on the resulting page, the report (PDF file) is not found.

So now I have a dilemma. How do I get ColdFusion to either a) write the PDF file out to the actual web server so that it's accessible to the user through the link, or b) *move* the file once it's been written from the ColdFusion server to the reports directory on the web server??

I looked into using the cffile tag to move the file, but haven't been able to get it to work successfully with UNC network paths. I could really use some advice on this if anyone has any ideas. Thanks.

<.YEX.>

/*
|| Robert D. Yexley
|| Oracle Programmer/Analyst
|| Northrop Grumman IT
|| Contractor - Wright Research Site MIS
|| Det-1 AFRL/PROE Bldg. 18 Rm. 034A
|| Commercial: 937.255.1984
|| DSN: 785.1984
|| [EMAIL PROTECTED]
|| <)))><
*/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to