Hi all,
Using SDK Script, I'm trying to export PDF from Laserfiche to Windows.
On localhost (Server Laserfiche), no problem. Now I'm trying to export the PDF to another server (Server NAS), but without success.
The error is :
"Logon failure: unknown user name or incorrect password"
and that's normal!
My question what do I do to export to another computer?
This is my SDK.
namespace WorkflowActivity.Scripting.ScriptSDKExport { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Text; using Laserfiche.RepositoryAccess; using Laserfiche.DocumentServices; /// <summary> /// Offre une ou plusieurs méthodes qui peuvent être exécutées au moment de l'exécution de l'activité de scriptage du flux de travail. /// </summary> public class Script1 : RAScriptClass92 { /// <summary> /// Cette méthode est exécutée quand l'activité est effectuée. /// </summary> protected override void Execute() { // Rédigez votre code ici. La propriété BoundEntryInfo accèdera à l'entrée, RASession obtiendra la section de Repository Access Laserfiche.DocumentServices.DocumentExporter DocEx = new Laserfiche.DocumentServices.DocumentExporter(); DocumentInfo DI = Document.GetDocumentInfo(this.BoundEntryId, RASession); DocEx.ExportElecDoc(DI, Convert.ToString(GetTokenValue("NomFichier"))); } } }
Localhost : NomFichier = "C:\\Users\\copyr\\Desktop\\File.pdf" (working)
Nas : NomFichier = "\\\\192.168.1.12\\OneDrive\\File.pdf" (not working).
Thanks in advance.
Regards