How can I insert an image on a slide with code?

David McFarlane mcfarla9 at msu.edu
Tue Aug 19 18:11:11 UTC 2014


Tobias,

First, if at all possible I recommend that you instead use an 
attribute reference for the image filename, and if needed just use 
inline code to set that attribute.  Please see discussion at 
https://groups.google.com/d/topic/e-prime/dWpfjk-BeLs .

If you must persist in assigning the filename directly in code, that 
takes several steps, too tedious to write out here.  Your best bet is 
to make a Slide with an image sub-object that uses an attribute 
reference, have E-Studio generate the code, then look at the code 
that generated by E-Studio and go from there.  That's how I figure 
out much of this stuff.

Best,
-----
David McFarlane
E-Prime training 
online:  http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter:  @EPrimeMaster (https://twitter.com/EPrimeMaster)

/----
Stock reminder:  1) I do not work for PST.  2) You may reach PST's 
trained staff (and other support facilities) at 
https://support.pstnet.com .  3) If you do get an answer from PST 
staff, please extend the courtesy of posting their reply back here 
for the sake of others.
\----


At 8/19/2014 01:49 PM Tuesday, Tobias wrote:
>I have a slide ("Slide1") that has an image on it called "Image1". 
>Now I want to use code to specify the filename of that image 
>according to my needs.
>
>I have tried something like Slide1.Image1.filename = "picture.bmp" 
>but that doesn't seem to work. It says "Image1 is not a property of 
>the object".
>
>Any ideas how to solve this problem?
>
>Thanks,
>Tobias

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/53f3934b.496b320a.4998.1389SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.



More information about the Eprime mailing list