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 iCloudLe 17 nov 2011 à 07:06, Paul Yu p...@mac.com a écrit:RaymondJust change your css @page declaration.@page {size:11in
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?
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
Hi,
I used mailapi.jar to send a mail from java program.
Attached a pdf to the mail and sent to multiple users.
Here is the code:
try{
File file=new File(report.pdf);
Hi,Thanks for all advices and the sent mail methods but sorry I think I was not clear in my question. My problem is get the file inside the generated component by this method : public WOActionResults downloadAsPDF() {
NSMutableDictionaryString, Object
configuration = new
NSData pdfAttachment = pdfReport.content();
On 07/12/2011, at 11:40 PM, Raymond NANEON wrote:
Hi,
Thanks for all advices and the sent mail methods but sorry I think I was not
clear in my question. My problem is get the file inside the generated
component by this method :
public
Hi Q,Thanks, I go to Try it.Envoyé depuis iCloudLe 07 déc 2011 à 06:47, Q qdo...@gmail.com a écrit:NSData pdfAttachment = pdfReport.content();On 07/12/2011, at 11:40 PM, Raymond NANEON wrote:Hi,Thanks for all advices and the sent mail methods but sorry I think I was not clear in my question. My
Hi Ramsey,My tags are properlies set. When I remove ERPDFWrapper tag, My page displays well and data have time to fetch. When I put ERPDFWrapper tag, I have result.pdf malformed file and when I click on OK, then my data fetch after.Try loading the page without the pdf wrapper first and running the
Raymond
Here's the more complete example.
MyComponent.java
public WOActionResults downloadAsPDF() {
NSMutableDictionaryString, Object configuration = new
NSMutableDictionaryString, Object();
WOContext context = (WOContext) context().clone();
Hi Paul,thanks a lot for your quick answer but what is the method myObject() ?Envoyé depuis iCloudLe 17 nov 2011 à 02:32, Paul Yu p...@mac.com a écrit:RaymondHere's the more complete example.MyComponent.java public WOActionResults downloadAsPDF() {NSMutableDictionaryString, Object configuration =
Raymond
That is just to set the object of interest into the component that you want to
download.
So in the MyPDFPage component.
MyPDFPage.java
private MyClass _myObject;
public void setMyObject(MyClass myObject) {
_myObject = myObject;
}
public MyClass myObject() {
return
Thanks Paul,You are on all my post, you rock.So I don't need to surround ERPDFWrapper to MyPDFPage.html?RayEnvoyé depuis iCloudLe 17 nov 2011 à 03:06, Paul Yu p...@mac.com a écrit:RaymondThat is just to set the object of interest into the component that you want to download.So in the MyPDFPage
Hi Paul,I made tests and your generation pdf method work very well. I go use it to generate my specifique pdf file.I will tell you.RayEnvoyé depuis iCloudLe 17 nov 2011 à 03:06, Paul Yu p...@mac.com a écrit:RaymondThat is just to set the object of interest into the component that you want to
Hi Paul,I generate a great pdf file. ThanksI want to know if it's possible to generate a landscape dpf file?Envoyé depuis iCloudLe 17 nov 2011 à 05:12, Raymond NANEON rnan...@me.com a écrit:Hi Paul,I made tests and your generation pdf method work very well. I go use it to generate my specifique
Raymond
Just change your css @page declaration.
@page {
size: 11in 8.5in; // change this to your paper size
margin: 0.25in;
-fs-flow-top: header;
-fs-flow-bottom: footer;
-fs-flow-left: left;
-fs-flow-right: right;
padding: 1em;
Hi All,I tried to generate a PDF file using ERPDFWrapper but I have a result.pdf file which is malformed. The page haven't time to get fetching data and the .pdf file is generated.So how Can I fix it.1:/ get fetch data2:/ generate pdf file from dataPS : There is a way to change file name?thanks
I'm not sure how it's becoming malformed for you, but I do know that the PDF
generator requires well formed xhtml. If you are missing end tags or have an
unencoded anywhere, you're going to be disappointed.
Ramsey
On Nov 16, 2011, at 2:11 AM, Raymond NANEON wrote:
Hi All,
I tried to
Hi Ramsey,
I use woongl in my page, the tag is not properly set. I would like to know why
the fetching data is not finished and the pdf file is generated and how to
change pdf file name.
Thanks
Envoyé de mon iPhone
Le 16 nov. 2011 à 17:27, Ramsey Gurley rgur...@smarthealth.com a écrit :
Raymond
Some thing like this
String baseFileName = someString();
String filename = pdfDocumentPrefix() + baseFileName + .pdf;
configuration.takeValueForKey(filename, filename);
WOResponse pdfReport =
On Nov 16, 2011, at 10:24 AM, Raymond NANEON wrote:
Hi Ramsey,
I use woongl in my page, the tag is not properly set.
Try loading the page without the pdf wrapper first and running the resulting
html you get through W3C's validator.
http://validator.w3.org/
If your output page is not well
Ramsey
On a related subject, have you gotten the header and footer tags to work?
Paul
On Nov 16, 2011, at 12:35 PM, Ramsey Gurley wrote:
On Nov 16, 2011, at 10:24 AM, Raymond NANEON wrote:
Hi Ramsey,
I use woongl in my page, the tag is not properly set.
Try loading the page without
HTML5 header and footer tags? I haven't tried them. Do they fail?
Ramsey
On Nov 16, 2011, at 10:42 AM, Paul Yu wrote:
Ramsey
On a related subject, have you gotten the header and footer tags to work?
Paul
On Nov 16, 2011, at 12:35 PM, Ramsey Gurley wrote:
On Nov 16, 2011, at 10:24
Hi Paul,I followed 60 secondes tutorial from wocommunity youtube channel about ERPDFGeneration and I didn't see this method. So it is used for japser report or ERPDFWrapper.Thanks.Envoyé depuis iCloudLe 16 nov 2011 à 09:28, Paul Yu p...@mac.com a écrit:RaymondSome thing like thisString
Check out ERPDF in 60 seconds on the podcast:
http://www.wocommunity.org/podcasts/wopodcasts.xml
Ramsey
On Nov 8, 2011, at 9:22 AM, Raymond NANEON wrote:
Hi All,
I am trying to generate a PDF file from a page of my apps and I saw
ERPDFGeneration plugin in the WONDER Library. I want to
BTW, that one is also on YouTube:
http://www.youtube.com/wocommunity
Check out ERPDF in 60 seconds on the podcast:
http://www.wocommunity.org/podcasts/wopodcasts.xml
Ramsey
On Nov 8, 2011, at 9:22 AM, Raymond NANEON wrote:
Hi All,
I am trying to generate a PDF file from a page
Thanks Ramsey and Pascal for the quick reaction and great help :DRayEnvoyé depuis iCloudLe 08 nov 2011 à 09:29, Pascal Robert prob...@macti.ca a écrit:BTW, that one is also on YouTube: http://www.youtube.com/wocommunity Check out ERPDF in 60 seconds on the podcast:
26 matches
Mail list logo