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

Question

Question

print to local network script

asked on May 12, 2015

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

0 0

Replies

replied on May 12, 2015

What error did you get?

0 0
replied on May 14, 2015

it doesn't even find the record.

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

Sign in to reply to this post.