Hi,
this code gives me the url of an object (pdf):
private String getURLByObjectId (String ObjID)
{
UrlObject String = "";
ObjectId objectId = new ObjectId (ObjID);
ObjectIdentity objectIdentity = new ObjectIdentity (objectId defaultRepository);
ObjectIdentitySet objectIdentitySet = new ObjectIdentitySet (objectIdentity);
ContentProfile contentProfile = new ContentProfile ();
contentProfile.FormatFilter = FormatFilter.SPECIFIED;
contentProfile.Format = "pdf";
contentProfile.ContentReturnType = "UrlContent";
OperationOptions operationOptions = new OperationOptions ();
operationOptions.ContentProfile = contentProfile;
DataPackage dataPackage = objectService.Get (objectIdentitySet,operationOptions);
Content resultContent dataPackage.DataObjects = [0]. Contents [0];
UrlContent urlContent = (UrlContent) resultContent;
urlObject = urlContent.Url;
urlObject return;
}
You can have the URL of a VIRTUAL DOCUMENT?
Thanks,
Emiliano