Results 1 to 4 of 4

Thread: export a report to a file on the client pc

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think you'd have to use JavaScript for that since all ASP.NET runs on the server-side.

  3. #3
    Lively Member
    Join Date
    Oct 2002
    Posts
    67
    Would having asp.net create it then issue a download work? Just curious, I don't do asp much.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    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
  •  



Click Here to Expand Forum to Full Width