Re: ChangePicture shape dynamically and Keep its Format/Properties

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • Re: ChangePicture shape dynamically and Keep its Format/Properties
    ... your existing picture will appear with a new name (something like ... this method cannot capture all the settings of the original ... Microsoft Online Community Support ... For MSDN subscribers whose posts are left unanswered, ...
    (microsoft.public.office.developer.automation)
  • RE: ConfigurationPropertyAttribute.IsRequired Property
    ... When I read the settings in code if it is false, ... As for the "how to test the missing of a configuration section in .net ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Unhandled Exception in GDI+
    ... and you haven't the control over what will be displayed in the picture box. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: How to tell if web.config item is/is not inherited
    ... noticed that appSettings and connectionStrings in the Configuration object ... contain both settings inherited from parent web.config and settings in ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: View bug?
    ... I changed the Time Zone under Site Settings> Site Administration> Regional ... showing up under the Dec. 15 heading). ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sharepoint.windowsservices)