I trye to change the content of Document.Info Properties but using the code below gives me an basic error: "Inadmisible value or data type mismatch"

oDocInfo.PropertyName =  value >> does nothing

oDocinfo.setPoropertyValue( "Propertyname", value)  >> gives the error

        dim s1 as variant
oDocInfo = oDocument.DocumentInfo()
        if not oDocInfo.PropertySetInfo.HasPropertyByName("PMG_Waar") then
         s1 = "Some textt"
         oDocInfo.AddProperty("PMG_Waar",0,s1)
         else
         oDocInfo.setPropertyValue("PMG_Waar" , s1)
         endif

Do i have the wrong code or is it a issue ??

thanks For any hint

Fernand

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to