Hi,
I was wondering how to export a file to an external path using an SDK Script in Workflow.
Now I had previously set up the script a while back but it looks as if something has changed in the ExportDoc methods.
Previously I would have used something similar, as shown below:
Dim MySession As Session = me.RASession
Dim MyDocument As Laserfiche.RepositoryAccess.DocumentInfo
Dim ExportDoc As New DocumentExporter
Dim EntryID as Integer = me.BoundEntryId
MyDocument = Document.GetDocumentInfo(EntryID,MySession)
'Attempts to export document
Try
ExportDoc.ExportElecDoc(MyDocument, "Output Folder Path")
Catch ex As Exception
MsgBox(ex.ToString)
End Try
But when using:
ExportDoc.ExportElecDoc(MyDocument, "Output Folder Path")
it asks the MyDocument variable to be ByVal document as IDocumentContents
How do I setup the variable MyDocument now so I can export it?
Many thanks,
Dom