Hi Everyone
I am sitting with a request that i need some help with.
My Scripting is very basic and needs some expert help.
I am looking to store a PDF from Laserfiche Repository into a Mapped network drive.
Is this possible ?
This is what i have currently (SDK Script) and it saves to the local C and D drive but not in my mapped Z: dir.
"
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;
using System.IO;
/// <summary>
/// Provides one or more methods that can be run when the workflow scripting activity is performed.
/// </summary>
public class Script1 : RAScriptClass102
{
/// <summary>
/// This method is run when the activity is performed.
/// </summary>
protected override void Execute()
{
string foldername = TokenReplace("%(foldername)");
string docname = TokenReplace("%(docname)");
int id = int.Parse(TokenReplace("%(FindStatement_OutputEntry_ID)"));
string path = "Z:\\Legal\\NDA's\\";
DirectoryInfo di = Directory.CreateDirectory(path);
FileStream streamer = File.Create(path+"\\" + docname +".pdf");
DocumentExporter doc = new DocumentExporter();
DocumentInfo docinfo = new DocumentInfo(id,RASession);
doc.ExportElecDoc(docinfo,streamer);
docinfo.Dispose();
"
Thanks in advance LF users
Regards