c# - Unable to add Microsoft Office Interop Assembly to Project -


i marked question 'not duplicate' because answer other question did not solve problem. this question contain answer helped me (second answer down, object library), still unable add required reference after this.

as below answer suggested, checked in c:/windows/assembly , found load of msil files. when checking these in visual studio (under project - add reference) couldn't find them not dlls , folder structure had changed.

however, running search here microsoft.office.interop.word allowed me find dll , add project.

hooray!


i need add following using directive project in order programmatically convert word documents pdf:

using microsoft.office.interop.word; 

however, no matter can't seem find dll or reference assembly:

enter image description here

as can see, have office installed on machine well:

enter image description here

no matter online, answer seems "make sure have word installed", not helpful do!

it should somewhere in c:\windows\assembly\

edited answer due below question should people have same issue in future.

browse (when adding new reference) > go c:\windows\assembly\ > gac_msil > microsoft.office.interop. > office version > dll should there


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -