|
-
May 21st, 2003, 11:18 AM
#1
Thread Starter
Addicted Member
export a report to a file on the client pc
Hello all,
I have a web application that creates reports.
I need to export a report to .xls file and save the file to the client computer.
at the moment the file gets saved onto the server...
Code:
Fname = "C:\Reports\Excel\Report.xls"
crDiskFileDestinationOptions.DiskFileName = Fname
With myReport.ExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.RichText
End With
myReport.Export()
how would i change my code to solve my problem?
thanx,
Tom
-
May 21st, 2003, 11:51 AM
#2
I think you'd have to use JavaScript for that since all ASP.NET runs on the server-side.
-
May 21st, 2003, 04:28 PM
#3
Lively Member
Would having asp.net create it then issue a download work? Just curious, I don't do asp much.
-
May 22nd, 2003, 02:54 AM
#4
Thread Starter
Addicted Member
Ok, how do i produce a "save as" dialog box so the user can specify the location to save the file?
I need to write the report to the CLIENT machine NOT the SERVER!
Last edited by tmashley; May 22nd, 2003 at 06:23 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|