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

Question

Question

SDK Script to Export a specific Version of an Electronic Document

asked two days ago

Hi, does anyone know if it is possible to export a specific version of an electronic document using the SDK script, if the entry in question has track version enabled with multiple versions? I know it is possible to use DocumentExporter class to export electronic doc but this seems to only allow exporting the latest version.

 

Thanks in advance.

0 0

Replies

replied one day ago

Hi Lam,

 

Like this:

If oEntryInfo.EntryType = EntryType.Document Then
Using oDocInfo As DocumentInfo = oEntryInfo
If oDocInfo.IsUnderVersionControl Then
Dim oVerHist As VersionHistory = oDocInfo.GetVersionHistory

and then you can read out a document version using the VersionHistory object.

'read into a LaserficheReadStream object.
oVerHist(intVersionID).ReadEdoc(oVerHist(intVersionID).MimeType)

 

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.