Hi,
I was trying tu use the automatation API for setting the user permissions of a document. Tried with the method CopyFrom from the IDocumentUserPermissions interface. It seems that the permissions change but I can't find a way to set the new permissions to my document.
For this task I used the following code (Using VB.net):
Dim qvApp As New QlikView.Application
Dim qvDoc As QlikView.Document
Dim qvTempDoc As QlikView.Document
qvDoc = qvApp.OpenDoc("File.qvw")
qvTempDoc = qvApp.OpenDoc("TempFile.qvw")
qvDoc.GetUserPermissions.CopyFrom(qvTempDoc.GetUserPermissions())
I expect that my code copy the "TempFile" user permissions to the "File" user permissions, but it doesn't
Could anyone help me explain what I'm doing wrong?
Thanks
Carlos Aguilar