Hello All,
I am trying to update the filetype of a document.
It does not seem to work.
Any ideas....
Appreciate your help. As always thank you for the great people here who have always helped with their valuable answers.
Below is the piece of code that I tried.
LLValue versionInfo = new LLValue().setAssoc();
if(doc.GetVersionInfo(volumeID, 1159662,1, versionInfo)!=0)
{
System.out.println("Failure in GetVersionInfo ");
}
else
{
System.out.println("Success in GetVersionInfo " +versionInfo.toInteger("ID"));
}
String newValue="pdf";
versionInfo.add("MimeType",newValue);
if(doc.UpdateVersionInfo(volumeID,1159662,1,versionInfo ) !=0)
{
System.out.println("Version info updated");
}
else
{
System.out.println("could not update version info"+ session.getStatusMessage());
}
Thank You,
Sunu
I am trying to update the filetype of a document.
It does not seem to work.
Any ideas....
Appreciate your help. As always thank you for the great people here who have always helped with their valuable answers.
Below is the piece of code that I tried.
LLValue versionInfo = new LLValue().setAssoc();
if(doc.GetVersionInfo(volumeID, 1159662,1, versionInfo)!=0)
{
System.out.println("Failure in GetVersionInfo ");
}
else
{
System.out.println("Success in GetVersionInfo " +versionInfo.toInteger("ID"));
}
String newValue="pdf";
versionInfo.add("MimeType",newValue);
if(doc.UpdateVersionInfo(volumeID,1159662,1,versionInfo ) !=0)
{
System.out.println("Version info updated");
}
else
{
System.out.println("could not update version info"+ session.getStatusMessage());
}
Thank You,
Sunu