I want export a report and e-mail it. I'm using PEExportTo function of
crpe32.dll, but something is going wrong, it ever returns 0 (false) .
code:
// Configurando as estruturas
l_EMapi.tolist = as_tolist+char(0)
l_EMapi.cclist = as_cclist+char(0)
l_EMapi.subject = as_subject+char(0)
l_EMapi.message = as_message+char(0)
l_EHtml.filename = as_filename
l_EInfo.formatdllname = ''+char(0)
l_EInfo.formattype = 4 // html draft standard
l_EInfo.formatoptions = l_EHtml
l_EInfo.destinationdllname = 'u2dmapi.dll'+char(0)
l_EInfo.destinationoptions = l_EMapi
lb_ret = PEExportTo(ii_job,l_EInfo)
ii_rcode = PEStartPrintJob(ii_job,TRUE)
if ii_rcode <> 1 then
this.of_showerror(ii_rcode)
return -1
end if
My thanks.
BMartins
"Giorgio Papagno" <giorgio...@tin.it> escreveu na mensagem
news:41387A38...@tin.it...