Jan 28
Jordon Davidson File Path Confustion
Jan 28, 2014; 09:23
Jordon Davidson
File Path Confustion
Hi List,
I=92m having a confusing time adding images to a pdf using the pdf_image(-file==91<filepath>=92) tag (Lasso 9.2.7)
The pdf constructor is a method in a custom type. in that method the file path to the image is given from the webfoot. i.e. /images/image_name.png
This works great when the generate pdf button is clicked on the web page. However, the client also wants this same pdf to be included in an email that is generated by the same page on load (on handle of the form submission actually.)
The email generator is also a method in the custom type. No problem, I figure, I=92ll just call the same generatePDF method inside my email method and attach the pdf to the mail in the email_send tag. And it works=85. mostly.
Interestingly the images which appear properly on the user click version of the pdf are not included in the system generated one.
I figured that it might be a path issue, so I logged the various response_ and include_ path methods and, lo, their values were identical regardless of which way the method was called.
I tried prefixing the file path with response_root =85 no difference.
I tried duplicating the files in the same general area of the filesystem as the actual type was located, no dice.
Finally I wanted to know if the method could actually see the file, so I logged file_exists(=91/images/image_file.png=92), expecting to get false (since the image was not included.) But lasso reports that, indeed the file does exist!
So why won=92t it include the file in the pdf????
Very confused.
Jordon Davidson
Senior Developer
Treefrog Interactive Inc. "Champions of Your Success"
ph: 905-836-4442 ext 102
fx: 905-895-6561
www.treefrog.ca
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 28
Brad Lindsay Re: File Path Confustion
Jan 28, 2014; 10:16
Brad Lindsay
Re: File Path Confustion
Jan 28
Jordon Davidson Re: File Path Confustion
Jan 28, 2014; 11:23
Jordon Davidson
Re: File Path Confustion
Jan 28
Brad Lindsay Re: File Path Confustion
Jan 28, 2014; 13:23
Brad Lindsay
Re: File Path Confustion
Jan 28
Bil Corry Re: File Path Confustion
Jan 28, 2014; 19:37
Bil Corry
Re: File Path Confustion
Jan 28
Jordon Davidson Re: File Path Confustion
Jan 28, 2014; 14:14
Jordon Davidson
Re: File Path Confustion
Jan 28
Brad Lindsay Re: File Path Confustion
Jan 28, 2014; 14:17
Brad Lindsay
Re: File Path Confustion
Jan 28
Jordon Davidson Re: File Path Confustion
Jan 28, 2014; 14:31
Jordon Davidson
Re: File Path Confustion