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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -