Hello all...
I have been trying for a long time to import a PDF file into my repository, but the problem is in the (docImporter.ImportEdoc) Is there an error in the code, knowing that I created a new project, but the same problem and I did not find any solution for it
I need help
using Laserfiche;
using Laserfiche.Project;
using global::Laserfiche.RepositoryAccess;
using System.IO;
using DocumentProcessor102;
using LFDocument = LFSO102Lib.LFDocument;
using LFSO102Lib;
private void button1_Click(object sender, EventArgs e)
{
string nameE = "12345678910";
string patheS = @"55\";
string fuLL = patheS + nameE;
string fuLL2 = @"C:\temp\output.pdf";
try
{
var myRegistration = new RepositoryRegistration("192.168.154.147", "ems-nrc");
var mySession = new Session();
mySession.LogIn("admin", "8589955", myRegistration);
int docID = Document.Create(fuLL, "DEFAULT", EntryNameOption.AutoRename, mySession);
DocumentInfo docInfo = (DocumentInfo)Entry.GetEntryInfo(fuLL, mySession);
DocumentImporter docImporter = new DocumentImporter();
docImporter.ImportEdoc(fuLL2,"application/pdf");