Re: ERPDFGeneration tutorial
Re: ERPDFGeneration tutorial
- Subject: Re: ERPDFGeneration tutorial
- From: Paul Yu <email@hidden>
- Date: Wed, 07 Dec 2011 07:32:35 -0500
Raymond
I have not done this in a complete loop, so you will need to experiment.
But the basic process would be something like this.
1) Do the PDF generation, but return the response into an NSData
2) Then follow the pattern in Pascal's link to put the NSData as content on the
message.addAttachment(new ERMailDataAttachment("myattachment.pdf", null, content));
Paul
On Dec 7, 2011, at 7:11 AM, Pascal Robert wrote:
> Have a look at ERJavaMail, you can send attachments with it.
>
> http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-ERJavaMail
>
>> Hi Paul,
>>
>> I would like to get the pdf file and sent it directly by mail with a method. How can I get the the file in the pdfReport component?
>>
>> Thanks for your help.
>>
>> Envoyé depuis iCloud
>>
>> Le 17 nov 2011 à 07:06, Paul Yu <email@hidden> a écrit :
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden