I'm trying to write an application that runs a search in Laserfiche and downloads the results. These could be images, electronic docs, or folders. So the functionality i'm mostly looking for is to export the docs as normal, but if the search hit is a folder, i want to preserve the folder structure and documents under it just like right clicking - > download folder contents. Doing this from the client will export the folder and give me the documents and text for all docs under that folder. But when i try and do this programmatically using CAT, it's exporting the folder and the contents, but only images, not the electronic files. scrolling through the ExportOptions there isn't much to work with and the DocumentPart property doesn't seem to help either, and i'm wondering if i'm going about this the right way or if this is just a shortcoming of the CAT Export function? Below is a snippet of what i'm doing, any guidance would be appreciated.
Dim con As Object = conn.GetConnectionString
Dim sess As Session = Session.CreateFromSerializedLFConnectionString(con)
Dim so As New SearchOptions
so.Query = boxsyntax.Text
so.OpenIfOneResult = False
so.NewWindow = False
so.EagerlyRetrieveResults = True
Dim hits As List(Of Integer) = conn.LaunchSearch(so)
Dim eo As New ExportOptions
eo.DestinationPath = "C:\testexport"
eo.DoNotPrompt = True
eo.ConflictOption = ExportConflictOption.Rename
mainwindow.ExportById(hits, eo)