Skip to content
Loading
Unable to create the excel file after publishing the c# code
  • Nilesh Shah
    then you have to find the error/exception, without that it's difficult to help you
  • Rahul  Prasad
    Try spire.xls instead. It doesn't rely on MS Office.
     
    https://www.e-iceblue.com/Introduce/excel-for-net-introduce.html 
  • In the server, we have already install msoffice.
  • Nilesh Shah
    there must be some error somewhere, r u logging any errors?
     
    most of the local\dev. PCs have MS Office already installed so any code dealing with excel works fine
     
    the server may not have MS Office installed,
    that's why the same code does not work on server.
    you may need to install/place excel com interop dll on server.