REPORT FORM folha_assistencia TO PRINTER noconsoleand in the sendemail i use this cursor to create the email with the code above,
select imprime lcBody ="Assistência Técnica JB-Informática" + chr(13) + ; " " + chr(13) + ; "Ficha Nº " + c_codigo_a + chr(13) + ; " " + CHR(13) + ; "Data: " + "Data a introd. " + "Hora: " + c_hora_mov + chr(13) + ; "" + chr(13) + ; "Nome Cliente: " + c_cli_nome + chr(13) x = newobject("ol_send","outlookx") x.Subject = c_assunto x.Body = lcBody x.Attachment = "" dimension x.Recipients[2] x.Recipients[1] = c_para x.Recipients[2] = "joaobatista.net@netvisao.pt" x.goand i call this methods in a buttom like .print, .sendemail, but the mail don´t go, but if i remove the line REPORT FROM... in the .print method the mail goes with no problem,