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

Question

Question

Add references to the workflow script

asked on September 27, 2017

Hi guys, i am about to do some scripting in the laserfiche workflow, as of now i need use Microsoft.office.Core and Microsoft.Office.Interop.Word.but unfortunately both of them not in the workflow reference list.  how do i add in a custom one?

 

thanks

0 0

Replies

replied on September 27, 2017

Aaron's instructions should get the reference added to your Workflow script activity, but it's unlikely your script will work because 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.

2 0
replied on September 27, 2017

thanks for the info! actually i just want to get some of the properties in a word document and migrate to the metadata in laserfiche document.

0 0
replied on September 27, 2017

Hi Jeff,

You will need to enable file browsing and then add the .dll to workflow via the Workflow Admin Console. Reference in admin guide here.

This LF answers posts may also help you as well. C# Script not loading external references

Regards,

Aaron

0 0
replied on September 27, 2017

Hi Aaron, 

Thanks for the reply.  for the dll i need to use, i need to download separately? or it can be found in my system? 

 

regards,

Jeff

0 0
replied on September 27, 2017

Hi Jeff,

If the assembly is not within the available selection, then yes you would need to download the file. As Miruna said, it might be best to use the Open XML sdk. 

Regards,

Aaron

0 0
replied on September 27, 2017

I downloaded the dll and manually add into the reference list. thanks alot guys.

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

Sign in to reply to this post.