Get users save file path using ASP .NET and C#

I am not super knowledgeable about ASP .NET practices in regards to downloading files I am trying to figure something out here. Basically I am using a crystal report to generate a nice and pretty formatted report and then use the report.ExportToDisk function to save the file on the users machine some where? Any suggestions would be appreciated. However if i can just get a file path i know how to do the actually saving portion and all that stuff. Thanks!
LVL 3
PoolcorpAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MlandaTCommented:
With ASP.NET you have no control or access to the users file system. The only thing you can is to ExportToDisk onto a location on the SERVER itself, then stream the file to the user... the user will then be prompted whether they want open or save the file. You will not not even be able to know where the user has saved the file to on their machine either.

Alternatively, instead of ExportToDisk, you can use the ExportToHttpResponse, which writes the exported report onto the Response stream. (I assume you can get documentation on how to use the ExportToHttpResponse)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PoolcorpAuthor Commented:
Neat, learn something new everyday. Thanks for the quick response.
mlmccCommented:
Actually that is not true.  There are third-party tools that allow you to specify where the report will go.

mlmcc
MlandaTCommented:
MLMCC:

I havent come across such an application, can you maybe provide some examples?

Just thinking about it... I am not quite sure why one would want to "control" where a user saves a report they have decided to export. And as is often my situation, deployment and orrganisational IT policies might sometimes be out of my control, I prefer to minimise the number of thirdy party control that I would have to deploy to my end users, unless it is really really really really adding value.
mlmccCommented:
Actually it is a full third-party application.

mlmcc
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.