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

Question

Question

Using third party dll in laserfiche workflow script

asked on January 10, 2018

Hi, I wanted to split .tif format image files in Laserfiche Workflow. For that I needed System.Drawing.Imaging in the namespace declaration. But it is giving me error "The type or namespace named 'Imaging' could not be found (are you missing a using directive or an assembly reference?)". Also I have selected use all assemblies in the scripting properties in the Laserfiche Workflow Administration Console. Same issue with System.Windows.Media.

Hence I used BitMiracle LibTiff.NET library. I added the required DLL's to the custom activities as well as the scripting properties of the Laserfiche Workflow Administration Console. Still I'm not able to declare it in the namespace and use it in the script. The error is displayed as "The type or namespace named 'BitMiracle' could not be found (are you missing a using directive or an assembly reference?)".

Please help in adding third party DLLs in laserfiche workflow.

System_drawing_imaging_console_all_assemblies.png
System_drawing_imaging_workflow.png
System_windows_media_workflow.png
System_windows_media_console_all_assemblies.png
BitMiracle_console_custom_activities.png
BitMiracle_console_scripting_properties.png
BitMiracle_workflow.png
0 0

Replies

replied on January 10, 2018

Did you add it as a reference in your script ( in the References node in the left lane in the script editor)?

0 0
replied on January 22, 2018

Thanks for the advice. I've successfully implemented BitMiracle DLL into my script. But my script also requires Tiffcp.exe which contains the classes required to perform operations on tiff files. But I'm not able to add it as reference to the workflow script as Tiffcp.exe is not displayed in the 'Add Reference' file explorer even though Tiffcp.exe is present in the folder. Also I tried to add reference to it in Laserfiche Workflow Administration Console but there we can add reference to only DLL files and not .exe

0 0
replied on January 22, 2018

Executables can't be references in a script. You can use Process.Start to call your .exe in the script.

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

Sign in to reply to this post.