Hi, I try to create a script in Laserfiche Workflow who export documents of the Laserfiche Repository in my Windows Folder. The code that I write is this:
int documentid = some default ID to test ; using (ClientManager lfclient = new ClientManager()) { ExportOptions exportoptions = new ExportOptions(); Laserfiche.ClientAutomation.PageSet pages = new Laserfiche.ClientAutomation.PageSet(); exportoptions.PageNumbers = pages; exportoptions.DoNotPrompt = true; exportoptions.DestinationPath = exportPath; exportoptions.ImageFormat = ImageType.Pdf; exportoptions.DocumentPart = ExportType.Images; LaunchOptions launchOptions = new LaunchOptions(); launchOptions.ServerName = serverName; launchOptions.RepositoryName = Repository Name; launchOptions.UserName = Username; launchOptions.Password = Password; ClientInstance singleLf; MainWindow mainwindow = null; singleLf = lfclient.LogIn(launchOptions, out mainwindow); mainwindow.ExportById(documentid, exportoptions); }
I use Laserfiche.ClientAutomation version 10.2 for exporting documents. When I run only the script he run without errors and export the document. When I run the workflow with the script this warning appear and the export doesn't work.
What should I do to escape of this warning/error?