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:
as can see, have office installed on machine well:
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
Post a Comment