JSP and Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohammedsiddig
    New Member
    • Jan 2008
    • 13

    JSP and Excel

    hello JSP Programmers ,
    how i can open an excel fiele on jsp page and disable editing it ?
  • ajos
    Contributor
    • Aug 2007
    • 283

    #2
    Originally posted by mohammedsiddig
    hello JSP Programmers ,
    how i can open an excel fiele on jsp page and disable editing it ?
    You need to set the content type that displays excel file types, something like this

    Code:
    response.setContentType("application/vnd.ms-excel");
    I think you have to do the disable editing part in your application level(Not sure).

    Google for more information.

    Comment

    • pronerd
      Recognized Expert Contributor
      • Nov 2006
      • 392

      #3
      Originally posted by mohammedsiddig
      hello JSP Programmers ,
      how i can open an excel fiele on jsp page and disable editing it ?
      To prevent editing open the file in Excel and save it as locked. This will prevent people that download it from editing it. You can Google how to lock Excel files if you have not done this before.

      Comment

      Working...