Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Journal - Access Microsoft DLL/Namespaces in Imports Statement 1

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
I would like to run a journal, without having to compile it, which references Microsoft Word functions, using:

Code:
Imports Microsoft.Office.Interop.Word

I have the DLL in the same folder as my journal .vb code, but NX complains:

Warning: Namespace or type specified in the Imports 'Microsoft.Office.Interop.Word' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Is this even possible? Am I supposed to have the DLL in a different location?

Thanks,
Jeff
 
Replies continue below

Recommended for you

If you are using a .net language and running your code as a journal (uncompiled source file), then this is not possible, unfortunately. Journals automatically reference some of the .net dll's, but no other references can be added. This is a built-in limitation of journals. For a list of the dll's that every journal can access, scroll down to the "journal fundamentals" section on this page.

If you have a .net author license, you can compile your code and add references to any dll files you wish (including MSOffice).

www.nxjournaling.com
 
Unfortunately, that is what I feared. Thanks for confirming.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor