Getprofiledocument

I am using profile document to send the report. I get Type Mismatch error.Below code is partial code.

Dim profileAuthors As NotesItem

Set mailDoc = db.GetProfileDocument("ProfileList")	

Set profileAuthors = mailDoc.GetFirstItem("MgNetwork")

mailDoc.SendTo = profileAuthors

Call mailDoc.send( True, False )

Call uidoc.Save

Call uidoc.close

please advise

amp

Subject: getprofiledocument

Hello,

U have the set the Item but to get the values you should use the following :

Set profileAuthors = mailDoc.GetFirstItem(“MgNetwork”)

mailDoc.SendTo = profileAuthors.Values

Better to create an array of String and then assign the value to maildoc.sendto .

HTH

Tom