Page 1 of 1

TemplateImage Confusion

Posted: Mon Apr 01, 2013 6:03 pm
by KennyR
I have been trying to create a template image object and import a image from the IOS "documents" space but having some issues. I can get this to work when I use the "mobilePickPhoto" command, but not when I am trying to import an image saved to documents. any help would be appreciated....here is my code and what I am trying to do...thanks

Code: Select all

 set the lockloc of the templateimage to true
    set the width of the templateimage to "82"
   set the height of the templateimage to "80"
   set the left of the templateimage to "9"
    set the top of the templateimage to "54"
set the defaultFolder to specialFolderPath("documents")
set the fileName of the templateImage to URL("file:contact1.png") 

Re: TemplateImage Confusion

Posted: Mon Apr 01, 2013 6:19 pm
by jmburnod
Hi KennyR,
Sorry.Not explanation I have to eat but
try

Code: Select all

new image
put specialFolderPath("documents") into tPathDoc
put  tPathDoc & "/" & "contact1.png" into tpathIMg
set the fileName of last image to tpathIMg
instead

Code: Select all

set the fileName of the templateImage to URL("file:contact1.png")
Best regards
Jean-Marc

Re: TemplateImage Confusion

Posted: Mon Apr 01, 2013 9:19 pm
by KennyR
NICCEEEE! Thanks very much.....works like expected!