Hi,
Using Workflow and Script SDK, I'm trying to print silently a PDF's file (using the printer).
This is my code in C#
namespace WorkflowActivity.Scripting.ScriptSDK6 { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Text; using Laserfiche.RepositoryAccess; using System.Diagnostics; /// <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 : RAScriptClass102 { /// <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 Process process = new Process(); process.StartInfo.FileName = "C:\\Program Files (x86)\\Adobe\\Acrobat 10.0\\Acrobat\\AcroRd32.exe"; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.Arguments = string.Format("-p \"C:\\Users\\Olivier\\Desktop\\#012875-LF.pdf\" \"gdn02ptr006\""); process.Start(); process.WaitForExit(); } } }
I don't have error in my workflow but the file didn't print.
Need some helps please.
Thanks in advance.
Regards