You are viewing limited content. For full access, please sign in.

Question

Question

Microsoft Office Scripting References

asked on February 24, 2015 Show version history

Hey,

I have created a script in VB 2010 for exporting images from Laserfiche into Word documents. I would like to run this script in a Workflow but I have been using references for Microsoft Word within the script.

Is there any way to add .OLB references in a script within Workflow? When browsing the only available file types are .DLL & .EXE.

Component name: Microsoft Word 14.0 Object Library 

Path: C:\Program Files\Microsoft Office\Office14\MSWORD.OLB

 

Thanks!

Dom

0 0

Answer

SELECTED ANSWER
replied on February 24, 2015

Microsoft doesn't support Office automation in a service context (like Workflow).  Office applications assume there is a user present to interact with the UI, and there may be problems loading properly due to the lack of a user profile.  The supported way of creating and modifying Office documents is to use the Open XML SDK.

0 0

Replies

replied on February 24, 2015

There is not. However, that file seems to be a COM component, not a .Net one. You probably want to use Office's interop assemblies as a reference not the .OLB file.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.