Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PEExportTo (Crystal 9 + Pb 7 )

80 views
Skip to first unread message

BMartins

unread,
Sep 2, 2004, 2:51:42 PM9/2/04
to
Hi folks,

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

unread,
Sep 3, 2004, 10:19:35 AM9/3/04
to
I do it with a DLL written in C++ and all it's ok. ( Export in PDF and
send email using MAPI ). I deprecate using of structure to pass to
external DLL.
Good luck.
giorgio.papagno.vcf

BMartins

unread,
Sep 3, 2004, 1:15:23 PM9/3/04
to
So, what am I doing wrong in my code?
How to configure to send a pdf? formattype = ?, ...

"Giorgio Papagno" <giorgio...@tin.it> escreveu na mensagem
news:41387A38...@tin.it...

0 new messages