Home
TeamSite
GetCopy with version 0 fails with WorkSite 8.2
jmather
With WorkSite 8.2, when making the GetCopy API call and passing in a document version of 0 we get an error. With WorkSite 8.1 and 8.2 this error is seen but with 8.0 we could successfully make this call. Has support for version 0 been dropped? Anyone have any recommendations?
The error:
error:438 - Object doesn't support this property or
method
Database: Lou
Number: 1117531
Version:0
How we are calling is this:
strDestPath = strDestPath & strDocNumber & "_" & strDocVer & "_" &
FormatDOS(strDatabase) & "." & objDocument.Extension
objDocument.GetCopy strDestPath, nrNativeFormat
Find more posts tagged with
Comments
jny
Does the error happen on the GetCopy call?
dopey
not to be naive, how do you get a document with version 0?
jmather
Sorry folks. I was able to deduce it wasn't the version 0. That was a coincidence. The cause of the error is that we were making the call objDocument.LatestVersion and this is no longer supported as of 8.1+. Once I changed the call to be objDocument.LatestVersion.version, I was able to perform the action successfully.