Results 1 to 8 of 8

Thread: IIS 6.0 and Excel

  1. #1
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0

    Question IIS 6.0 and Excel

    Previously I had my Intranet Server on a Windows NT Server but I have recntly acquired a new machin and convert but the New Server is running Windows Server 2003. Now my pages that were opening perfectly with the other server is telling me that;

    Microsoft Excel cannot acces the file ... There are several possibl reasons:
    -The fil name or path name does not xtist

    -The file you're trying to open is being use dby another program. Col the document in the other program, and try again.

    -The name of the workbook you'r trying to save is the same as the name of another document that is read-only. try saving the workbook with a different name

    The code i use is
    Response.ContentType = "application/vnd.ms-excel"
    placed at the top of the page I want to open in excel.

    NB. The pages were all opening on the machine running windows nt server.

    Can anyone assist me, this is very urgent

  2. #2
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0

    Angry Re: IIS 6.0 and Excel

    Is there Anyone in Here!!!
    HEllo!!!!!!

  3. #3
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: IIS 6.0 and Excel

    Sorry a-dre. I was researching your problem but couldn't find anything that would help you. From everything I have read about IIS 6 is that it has everything disabled or turned off when the server is setup.

    I have no experience with IIS 6, but have you checked the list of reasons that the error provided to you?
    - Have you checked the file name or path to the file?
    - Have you checked if the file is already opened by another program?
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  4. #4
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: IIS 6.0 and Excel

    Ok, I checked with some friends of mine who are server admins and they say the following code works for them on IIS 6.

    Code:
    Response.ContentType = "application/vnd.ms-excel"
    Response.AddHeader "Content-Disposition", "attachment;filename=Pre_Inspection_Listing.xls"  'forces the save/open box
    So I don't know if you have the extra Response.AddHeader code.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  5. #5
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0

    Default Re: IIS 6.0 and Excel

    Thank you for your reply but they did not help.

    Do you have any other suggestions?
    Or someone mentioned that all the features have been turned off for windows 2003 server . Doe sanyone have any ideas on what is needed to turn on?

    Thanks

  6. #6
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: IIS 6.0 and Excel

    Can I see a copy of the code you are using?
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  7. #7
    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0

    Default Re: IIS 6.0 and Excel

    The addHeader did actually work thanks alot,

    And sorry for taking so long to reply

  8. #8
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: IIS 6.0 and Excel

    You're Welcome.

    But how come it didn't work before? You did something wrong in the code?
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •