Copy link to clipboard
Copied
I am trying to user cfSpreadSheet functon. The first question I have is, can you write the file on a client machine? I tried but they all end up on the server drive. Scecond question, is there a way to do row and column range formating in CF9.0? SpreadsheetFormatCellRange function is only available for ColdFusion server version 9.01.
Thanks.
You can't directly write to the client machine. However, using cfcontent you can invite the user to either open or save the file.
Copy link to clipboard
Copied
You can't directly write to the client machine. However, using cfcontent you can invite the user to either open or save the file.
Copy link to clipboard
Copied
Thanks for the reply Dan, that's helpful.
Copy link to clipboard
Copied
To expand on Dan's answer: CF doesn't have any interaction with the client browser at all: client->server comms are handled by the client and the web server; the web server simply asks CF to provide the response data if the file requested is a CF file. But even then all CF does is process the requested file and return data to the web server.
Also, one of the restrictions of the HTTP protocol is that that there is *no* *way* that the server can write to the client machine. All it can do is send data to the client agent (eg: a web browser) in response to the client agent requesting it. Can you imagine the sort of security problems one would open one's self up to if a remote web server could write to your PC????
--
Adam
Copy link to clipboard
Copied
Thanks Adam, I guess I worded wrong, I meant to give user option so they can either open or save on client machine, Basically invoke the directory dialog box, so the drive can be available for user to save. But this is accomplished by doing Dan's suggestion. Appreciate your helpful insights.