Exception thrown when calling Workbook.SaveAs() in Excel.Interop and C# -


we experiencing production issue whereby call excel workbook's saveas method password. exception thrown is:

the remote procedure call failed. (exception hresult: 0x800706be) 

the call done follows, _excelpassword workbook's generated password , exceloutputpath location on disk file should written to:

workbook.saveas(exceloutputpath, xlfileformat.xlopenxmlworkbook, _excelpassword, _excelpassword, false, false); 

there no issue if file saved without password though.

what missing please?

so solution ended save workbook without password, reopen again, set password on workbook object , save again. tedious, know, fixed remote procedure call failed issue getting


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -