Link to home
Start Free TrialLog in
Avatar of negreteo
negreteoFlag for United States of America

asked on

Problem saving a file from a web site

Hi,

 I have a crystal report in an ASP.net app which is exported to PDF format to path C:\Temp\ but when the page is accesed from users' PC the file is stored at C:\Temp\ of my web server and not user's PC's

 How can I make my file to be exported or saved on my user's PC

This is my exporting code

ExportPath = "C:\Temp\";

crDiskFileDestinationOptions.DiskFileName  = ExportPath + "RMA_Report.pdf";
crExportOptions = rpt.ExportOptions ;                        
                        
crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;

rpt.Export();  

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
raterus is 110% right on the money.
Avatar of negreteo

ASKER

I am developing in c#

Don't you have it in C#

Anyway I'll try to translate it and test it
Sorry I don't.  Thank you for taking the initiative to translate, I wish other people would do that!