Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while opening Type Library of Microsoft Word 16.0 #12

Open
NN--- opened this issue Apr 22, 2019 · 2 comments
Open

Error while opening Type Library of Microsoft Word 16.0 #12

NN--- opened this issue Apr 22, 2019 · 2 comments

Comments

@NN---
Copy link

NN--- commented Apr 22, 2019

---------------------------
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   
---------------------------
@Charltsing
Copy link

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

@sonicbhoc
Copy link

I'm having the same issue with Excel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants