I have this script that is working just fine in another WF. But I move it here, and I get these errors. Nothing about the code is different from where I took it. I get the error of "DocumentExporter" is not defined. Also, I am getting 'PdfExportOptions' is not declared. What do I need to do to fix this?
Also a bonus, I created a token called _modifiedPath and want to have it put that text in a file path. I am doing it right?
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.zither
'''<summary>
'''Provides one or more methods that can be run when the workflow scripting activity is performed.
'''</summary>
Public Class Script1
Inherits RAScriptClass92
'''<summary>
'''This method is run when the activity is performed.
'''</summary>
Protected Overrides Sub Execute()
'Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session
dim ex as new DocumentExporter
dim doc as DocumentInfo = Document.GetDocumentInfo(integer.Parse(GetTokenValue("Entry ID")),RASession)
ex.ExportPdf(doc, doc.AllPages,PdfExportOptions.None, "\\fsstl06\userdirs\Scanning\Emma_Securian\" & GetTokenValue("_modifiedPath") & GetTokenValue("Entry Name") & ".pdf")
End Sub
End Class
End Namespace