oleviewdotnet
oleviewdotnet copied to clipboard
Error while opening Type Library of Microsoft Word 16.0
---------------------------
Error
---------------------------
Type 'Microsoft.Office.Core.MsoSyncEventType, 2df8d04c-5bfa-101b-bde5-00aa0044de52, Version=2.8.0.0, Culture=neutral, PublicKeyToken=null' was not loaded in the ReflectionOnly context but the AssemblyBuilder was created as AssemblyBuilderAccess.ReflectionOnly.
---------------------------
OK
---------------------------
fix: TypeLibImporterFlags.ReflectionOnlyLoading--->TypeLibImporterFlags.None
AssemblyBuilder asm = conv.ConvertTypeLibToAssembly(typeLib,
strAssemblyPath,
TypeLibImporterFlags.None,
new TypeLibCallback(progress),
null, null, null, null);
I'm having the same issue with Excel.