negreteo
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\";
crDiskFileDestinationOptio ns.DiskFil eName = ExportPath + "RMA_Report.pdf";
crExportOptions = rpt.ExportOptions ;
crExportOptions.Destinatio nOptions = crDiskFileDestinationOptio ns;
crExportOptions.ExportDest inationTyp e = ExportDestinationType.Disk File;
crExportOptions.ExportForm atType = ExportFormatType.PortableD ocFormat;
rpt.Export();
Thanks in advance
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\";
crDiskFileDestinationOptio
crExportOptions = rpt.ExportOptions ;
crExportOptions.Destinatio
crExportOptions.ExportDest
crExportOptions.ExportForm
rpt.Export();
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
raterus is 110% right on the money.
ASKER
I am developing in c#
Don't you have it in C#
Anyway I'll try to translate it and test it
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!