Here is a script we have been trying to write. All we want to do in our workflow is put a copy to a local drive (eventually will be a network drive). What am I missing?
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.SqlClient
Imports System.Text
Imports Laserfiche.RepositoryAccess
Imports Laserfiche.DocumentServices
Namespace WorkflowActivity.Scripting.SDKScript4
'''<summary>
'''Provides one or more methods that can be run when the workflow scripting activity is performed.
'''</summary>
Public Class Script1
Inherits RAScriptClass91
'''<summary>
'''This method is run when the activity is performed.
'''</summary>
Protected Overrides Sub Execute()
MsgBox("RUNNING on ID:" & Me.BoundEntryId)
'Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session
dim exporter as DocumentExporter = new DocumentExporter()
dim docToExport as DocumentInfo = me.BoundEntryInfo
dim pagesToExport as PageSet = docToExport.AllPages
dim exportPath as String = "C:\ExportTest\" & docToExport.Name & ".tif"
MsgBox("exportPath = " & exportPath)
exporter.ExportPages(docToExport, pagesToExport,exportPath)
End Sub
End Class
End Namespace