Re: ChangePicture shape dynamically and Keep its Format/Properties
- From: Rui Barbosa <ruibarbosa@xxxxxxxxxxxxx>
- Date: Mon, 13 Aug 2007 03:30:00 -0700
Thank you all for your help.
Best regards,
Rui Barbosa
Devscope.net
-- --------------------------
"Jialiang Ge [MSFT]" wrote:
Hello Rui.
From your post, my understanding on this issue is: you want to replace an
image in ppt programmatically, and keep all the settings, such as
transparency, shadow, position, of the original one. I think that it is a
utility quite the same as 'Change Picture' command in Office 2007
(http://office.microsoft.com/en-us/powerpoint/HA101978561033.aspx#1 ). If
I'm off base, please feel free to let me know.
There are several ways available to replace an image programmatically:
1. In Office 2007, a slide image can be replaced with formatting without
requiring you to load PowerPoint 2007 and then load the presentations. It
is done by directly manipulating on Office Open Xml formats.
http://msdn2.microsoft.com/en-US/library/bb332455.aspx
2. As Steve mentioned, HTML swapping is the 2nd way to replace an image in
PowerPoint
you can save the entire presentation as an HTML file. In the folder of HTML
content, your existing picture will appear with a new name (something like
slide0002_image002.jpg). If you replace this image with the new picture
(must be the same image file type) using the exact same name, it will be
replaced on the slide when you re-open it in PowerPoint and resave as a ppt
file. Note that any brightening contrast or cropping changes to the old
picture will be applied to the new picture as well. The animations will
also still be applied.
3. Format painter toolbrush.
As Steve said, this method cannot capture all the settings of the original
image: the position and size of the image will be lost, while the shadow,
transparency, etc will be kept.
4. Program to copy the settings of the image yourself.
Although you said that it is not a smart way in your first message, but it
is indeed the most common way.
The following URL links to a question similar to yours, which is also
resolved by copying the settings of the images.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1838672&SiteID=1
Sincerely,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove ¡®online.¡¯)
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box ¡°Tools/Options/Read: Get 300 headers at a time¡±
to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided ¡°AS IS¡± with no warranties, and confers no
rights.
- References:
- Re: ChangePicture shape dynamically and Keep its Format/Properties
- From: Steve Rindsberg
- Re: ChangePicture shape dynamically and Keep its Format/Properties
- From: Jialiang Ge [MSFT]
- Re: ChangePicture shape dynamically and Keep its Format/Properties
- Prev by Date: Re: ChangePicture shape dynamically and Keep its Format/Properties
- Next by Date: RE: MODI ERROR
- Previous by thread: Re: ChangePicture shape dynamically and Keep its Format/Properties
- Next by thread: Re: Server Side Mail Merge
- Index(es):
Relevant Pages
|