Skip to content

Commit

Permalink
Merge branch 'release-7.2.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
bovender committed Nov 26, 2017
2 parents 04703e0 + d17ab50 commit 3efaaf9
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 35 deletions.
4 changes: 2 additions & 2 deletions Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.12.0")]
[assembly: AssemblyFileVersion("7.2.12.0")]
[assembly: AssemblyVersion("7.2.13.0")]
[assembly: AssemblyFileVersion("7.2.13.0")]
8 changes: 4 additions & 4 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.3.7\lib\net40\NLog.dll</HintPath>
<HintPath>..\packages\NLog.4.4.12\lib\net40\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.core">
Expand Down Expand Up @@ -105,8 +105,8 @@
</Reference>
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
<Reference Include="YamlDotNet, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.1.0\lib\net35\YamlDotNet.dll</HintPath>
<Reference Include="YamlDotNet, Version=4.2.1.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.2.1\lib\net35\YamlDotNet.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
Expand Down Expand Up @@ -209,4 +209,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
2 changes: 1 addition & 1 deletion Tests/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="YamlDotNet" publicKeyToken="ec19458f3c15af5e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
4 changes: 2 additions & 2 deletions Tests/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<packages>
<package id="Bovender" version="0.17.0.0" targetFramework="net40" />
<package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
<package id="NLog" version="4.4.3" targetFramework="net40" />
<package id="NLog" version="4.4.12" targetFramework="net40" />
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.1.0" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.2.1" targetFramework="net40" />
</packages>
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
7.2.12
7.2.12.0
7.2.13
7.2.13.0
14 changes: 12 additions & 2 deletions XLToolbox/Excel/ViewModels/Instance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -649,18 +649,28 @@ internal string LoadAddinFromEmbeddedResource(string resourceName)
{
Logger.Warn("LoadAddinFromEmbeddedResource: COM exception caught, falling back to CorruptLoad");
DisableDisplayAlerts();

// Temporarily set locale to en-US to prevent errors on opening add-in
// See https://stackoverflow.com/a/27756126/270712
Logger.Info("LoadAddinFromEmbeddedResource: Temporarily setting locale to en-US");
System.Globalization.CultureInfo oldLocale = System.Threading.Thread.CurrentThread.CurrentCulture;
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

try
{
Workbooks.Open(addinPath, CorruptLoad: XlCorruptLoad.xlExtractData);
// Workbooks.Open(addinPath, CorruptLoad: XlCorruptLoad.xlExtractData);
Workbooks.Open(addinPath);
}
catch (System.Runtime.InteropServices.COMException e)
{
Logger.Fatal("LoadAddinFromEmbeddedResource: COM exception occurred after calling Workbooks.Open");
Logger.Fatal("LoadAddinFromEmbeddedResource: COM exception occurred when calling Workbooks.Open");
Logger.Fatal(e);
throw new XLToolbox.Excel.ExcelException("Excel failed to load the legacy Toolbox add-in", e);
}
finally
{
Logger.Info("LoadAddinFromEmbeddedResource: Setting locale back to #{0}", oldLocale.ToString());
System.Threading.Thread.CurrentThread.CurrentCulture = oldLocale;
EnableDisplayAlerts();
}
}
Expand Down
4 changes: 3 additions & 1 deletion XLToolbox/Export/Exporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ private void ExportEmf(Metafile metafile)
IntPtr handle = metafile.GetHenhmetafile();
PercentCompleted = 50;
Logger.Info("ExportEmf, handle: {0}", handle);
Bovender.Unmanaged.Pinvoke.CopyEnhMetaFile(handle, FileName);
IntPtr copy = Bovender.Unmanaged.Pinvoke.CopyEnhMetaFile(handle, FileName);
Logger.Info("Deleting meta file handle: {0}", copy);
Bovender.Unmanaged.Pinvoke.DeleteEnhMetaFile(copy);
PercentCompleted = 100;
}

Expand Down
5 changes: 4 additions & 1 deletion XLToolbox/Export/ViewModels/BatchExportSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public bool IsOpenWorkbooksEnabled
set
{
_isOpenWorkbooksEnabled = value;
if (!value && Scope.AsEnum == BatchExportScope.OpenWorkbooks) Scope.AsEnum = BatchExportScope.ActiveWorkbook;
OnPropertyChanged("IsAllWorkbooksEnabled");
}
}
Expand All @@ -195,6 +196,7 @@ public bool IsChartsAndShapesEnabled
set
{
_isChartsAndShapesEnabled = value;
if (!value && Objects.AsEnum == BatchExportObjects.ChartsAndShapes) Objects.AsEnum = BatchExportObjects.Charts;
OnPropertyChanged("IsChartsAndShapesEnabled");
}
}
Expand All @@ -221,7 +223,8 @@ public bool IsSheetLayoutEnabled
set
{
_isSheetLayoutEnabled = value;
OnPropertyChanged("IsPreserveLayoutEnabled");
if (!value && Layout.AsEnum == BatchExportLayout.SheetLayout) Layout.AsEnum = BatchExportLayout.SingleItems;
OnPropertyChanged("IsSheetLayoutEnabled");
}
}

Expand Down
4 changes: 2 additions & 2 deletions XLToolbox/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.12.0")]
[assembly: AssemblyFileVersion("7.2.12.0")]
[assembly: AssemblyVersion("7.2.13.0")]
[assembly: AssemblyFileVersion("7.2.13.0")]
10 changes: 5 additions & 5 deletions XLToolbox/XLToolbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.3.7\lib\net40\NLog.dll</HintPath>
<HintPath>..\packages\NLog.4.4.12\lib\net40\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework, Version=3.4.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.4.1\lib\net40\nunit.framework.dll</HintPath>
<Reference Include="nunit.framework, Version=3.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.7.1\lib\net40\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PresentationCore" />
Expand All @@ -100,8 +100,8 @@
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
<Reference Include="YamlDotNet, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.1.0\lib\net35\YamlDotNet.dll</HintPath>
<Reference Include="YamlDotNet, Version=4.2.1.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.2.1\lib\net35\YamlDotNet.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion XLToolbox/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="YamlDotNet" publicKeyToken="ec19458f3c15af5e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
6 changes: 3 additions & 3 deletions XLToolbox/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<packages>
<package id="Bovender" version="0.17.0.0" targetFramework="net40" />
<package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
<package id="NLog" version="4.4.3" targetFramework="net40" />
<package id="NUnit" version="3.6.0" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.1.0" targetFramework="net40" />
<package id="NLog" version="4.4.12" targetFramework="net40" />
<package id="NUnit" version="3.7.1" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.2.1" targetFramework="net40" />
</packages>
4 changes: 2 additions & 2 deletions XLToolboxForExcel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.12.0")]
[assembly: AssemblyFileVersion("7.2.12.0")]
[assembly: AssemblyVersion("7.2.13.0")]
[assembly: AssemblyFileVersion("7.2.13.0")]

[assembly: NeutralResourcesLanguageAttribute("en-US")]
8 changes: 4 additions & 4 deletions XLToolboxForExcel/XLToolboxForExcel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
</Reference>
<Reference Include="Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.3.7\lib\net40\NLog.dll</HintPath>
<HintPath>..\packages\NLog.4.4.12\lib\net40\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PresentationCore" />
Expand All @@ -180,8 +180,8 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
<Reference Include="YamlDotNet, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.1.0\lib\net35\YamlDotNet.dll</HintPath>
<Reference Include="YamlDotNet, Version=4.2.1.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.Signed.4.2.1\lib\net35\YamlDotNet.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
Expand Down Expand Up @@ -333,4 +333,4 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
</Project>
2 changes: 1 addition & 1 deletion XLToolboxForExcel/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="YamlDotNet" publicKeyToken="ec19458f3c15af5e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
4 changes: 2 additions & 2 deletions XLToolboxForExcel/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<packages>
<package id="Bovender" version="0.17.0.0" targetFramework="net40" />
<package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
<package id="NLog" version="4.4.3" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.1.0" targetFramework="net40" />
<package id="NLog" version="4.4.12" targetFramework="net40" />
<package id="YamlDotNet.Signed" version="4.2.1" targetFramework="net40" />
</packages>

0 comments on commit 3efaaf9

Please sign in to comment.