5.0.12 : kleine Korrektur für verschlüsselte? (und demnach nicht lesbare) Excel-Sheets

This commit is contained in:
Daniel Schick 2018-07-06 12:09:23 +00:00
parent c26f49dc92
commit 54fad6def2
4 changed files with 65 additions and 57 deletions

Binary file not shown.

View File

@ -124,6 +124,8 @@ namespace bsmd.ExcelReadService
else else
{ {
// try to read/import attachment // try to read/import attachment
try
{
using (ExcelReader reader = new ExcelReader(attachmentLocalPath)) using (ExcelReader reader = new ExcelReader(attachmentLocalPath))
{ {
try try
@ -197,6 +199,12 @@ namespace bsmd.ExcelReadService
} }
} }
} }
catch(Exception excelReadException)
{
receiptText = string.Format("Error opening excel sheet: {0}", excelReadException.Message);
_log.Error(receiptText);
}
}
// remove attachment // remove attachment
_log.InfoFormat("removing local file {0}", attachmentLocalPath); _log.InfoFormat("removing local file {0}", attachmentLocalPath);

View File

@ -2,6 +2,6 @@
[assembly: AssemblyCompany("schick Informatik")] [assembly: AssemblyCompany("schick Informatik")]
[assembly: AssemblyProduct("BSMD NSW interface")] [assembly: AssemblyProduct("BSMD NSW interface")]
[assembly: AssemblyInformationalVersion("5.0.11")] [assembly: AssemblyInformationalVersion("5.0.12")]
[assembly: AssemblyCopyright("Copyright © 2014-2018 schick Informatik")] [assembly: AssemblyCopyright("Copyright © 2014-2018 schick Informatik")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]

View File

@ -1,4 +1,4 @@
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("5.0.11.*")] [assembly: AssemblyVersion("5.0.12.*")]