I have a qvw which contains a reort. I want to mail it as pdf attachment to users. I have searched for solutions in this forum. Below is what i taked (Maco script), But i didnt work. Any suggestion please?
SUB MailReport
DIM objEmail
DIM varDate
DIM v
SET v = ActiveDocument.Variables("vDate")
varDate = v.GetContent.STRING
CONST cdoSENDUsingPort = 2 ' Send the message using SMTP