Killing the Excel process

Discussion in 'C#' started by dampyr73, Aug 29, 2006.

  1. #1
    Hi everybody,
    i'm trying to generate a graph using asp and excel. The application works good but I can't kill the excel.exe process from the task manager after the running of the asp page.
    I've tried with this code:

    Ex.Quit
    Set Ex = Nothing

    but it doesn't work.

    Any suggestion? Thanks
    Maurizio
     
    dampyr73, Aug 29, 2006 IP
  2. rahulm

    rahulm Peon

    Messages:
    178
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi try this
    close your workbook first then quit but Must have both (Close and Quit)!
     
    rahulm, Aug 30, 2006 IP
  3. dampyr73

    dampyr73 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot,
    it works!
     
    dampyr73, Aug 31, 2006 IP