Well, when you say that you show the files in a directory, do you mean you
literally allow the user to browse a folder on the website, or you provide
some UI that displays a list of files they can download.
On way to do this might be to render the hyperlinks so they point to a proxy
file rather than the actual file. For instance, the URL might look like
"mydomain.com/download.aspx?filename=something.pdf". This allows the file
download.aspx to do whatever processing it needs before sending it to the
browser. The special processing in this case would be to zip the contents.
You can check out SharpZip which is a free zip component for .NET. Once
zipped, then you can stream the bytes to the browser which will then prompt
the user to save the file and such.
"Jim Andersen" <no****@nospam.dk> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
I am going to build a webapp. Our users are not allowed to download certain
files, so I need to show files in a directory (.doc, .ppt, ???) and the
user can then convert them to PDF and download that PDF to his PC instead
of the original.
If it's a zip-archive they should be able to unzip the file, and then
maybe PDF the files in the zip-archive.
Any tips, suggestions, links to products etc are most welcome.
/jim