Error saving Excel file

Posted by: gregoryew on 8 September 2017, 3:15 pm EST

  • Posted 8 September 2017, 3:15 pm EST

    I am running into a problem with version 6 for Windows forms. I have a web service which creates an Excel document and is running into a problem when saving the file with the SaveExcel method of an object of the FpSpread class It is only occuring on the server and runs correctly locally. The exception which it is generating just says "Error saving Excel file" which is not very helpful. Is there some way to get more information about what is going on?

  • Marked as Answer

    Replied 8 September 2017, 3:15 pm EST

    Hi Greg,

    Is there a previous exception in the InnerException?
    It sounds like a permission issue; do you have write access to the folder path where you save the file on the server?
    I suggest trying the overloads which use Stream instead of the file path, and see whether you get an exception creating the FileStream to pass to OpenExcel.

    Hope that helps!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels