oleviewdotnet icon indicating copy to clipboard operation
oleviewdotnet copied to clipboard

Error while opening Type Library of Microsoft Word 16.0

Open NN--- opened this issue 5 years ago • 2 comments

---------------------------
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   
---------------------------

NN--- avatar Apr 22 '19 12:04 NN---

fix: TypeLibImporterFlags.ReflectionOnlyLoading--->TypeLibImporterFlags.None AssemblyBuilder asm = conv.ConvertTypeLibToAssembly(typeLib, strAssemblyPath,
TypeLibImporterFlags.None, new TypeLibCallback(progress), null, null, null, null);

Charltsing avatar Apr 01 '20 06:04 Charltsing

I'm having the same issue with Excel.

sonicbhoc avatar Sep 21 '21 14:09 sonicbhoc