You are viewing limited content. For full access, please sign in.

Question

Question

using documentimporter, how to specify the volume to assign it to?

SDK
asked on July 10, 2018 Show version history

Using RA I create a new document by initializing a new DocumentInfo object, followed by using DocumentImporter to import pages to the document that I created.

In the SDK I could specify the VolumeName as part of creating the document, but it is Read Only in the Documentinfo object.

Using RA and Document Services to create and import documents, how do I specify the Volume that the document should be assigned to? 

0 0

Answer

SELECTED ANSWER
replied on July 11, 2018

DocumentInfo.Create takes a volume name, e.g.:


using (DocumentInfo doc = new DocumentInfo(session))
{
    string volName = "DEFAULT";
    doc.Create(folder, docName, volName, EntryNameOption.AutoRename);

    DocumentImporter docImporter = new DocumentImporter();

    docImporter.Document = doc;
    docImporter.ImportEdoc(mimeType, file);
}

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.