PC Review


Reply
Thread Tools Rate Thread

How can check "lock Picture aspect ratio" option in PowerPoint 200

 
 
Team
Guest
Posts: n/a
 
      27th Oct 2008
How can I check the "lock Picture aspect ratio" option in PowerPoint 2003
programmatically?
-----------------------------------
I have created a single slide presentation and insert a picture on the slide
by doing the following:
1. Insert a Shape
2. Slect the shape -> Right Click -> Format AutoShape -> Colors and Lines
-> Fill: Fill Effects -> Picture -> Select Picture: Select an image from
folder and click the insert button. After clicking the insert button there is
an option to check -"Lock Picture Aspect Ratio". Is there any way to check
the "Lock Picture Aspect Ratio" programmatically by using the PowerPoint
object model?
 
Reply With Quote
 
 
 
 
John Wilson
Guest
Posts: n/a
 
      27th Oct 2008
Assuming the pic is selected

ActiveWindow.Selection.ShapeRange(1).LockAspectRatio = msoTrue
--
Amazing PPT Hints, Tips and Tutorials

http://www.pptalchemy.co.uk/powerpoi...tutorials.html
_______________________________




"Team" wrote:

> How can I check the "lock Picture aspect ratio" option in PowerPoint 2003
> programmatically?
> -----------------------------------
> I have created a single slide presentation and insert a picture on the slide
> by doing the following:
> 1. Insert a Shape
> 2. Slect the shape -> Right Click -> Format AutoShape -> Colors and Lines
> -> Fill: Fill Effects -> Picture -> Select Picture: Select an image from
> folder and click the insert button. After clicking the insert button there is
> an option to check -"Lock Picture Aspect Ratio". Is there any way to check
> the "Lock Picture Aspect Ratio" programmatically by using the PowerPoint
> object model?

 
Reply With Quote
 
Team
Guest
Posts: n/a
 
      28th Oct 2008
Thanks for the reply.

The below code only checks the option "Lock Aspect ratio"(Select the
shape->Right Click->Format AutoShape->Size->Lock Aspect ratio). But I need to
check the option "Lock Picture Aspect Ratio"( Slect the shape -> Right Click
-> Format AutoShape -> Colors and Lines -> Fill: Fill Effects -> Picture ->
Select Picture: Select an image from folder and click the insert button.
After clicking the insert button there is an option to check -"Lock Picture
Aspect Ratio").


"John Wilson" wrote:

> Assuming the pic is selected
>
> ActiveWindow.Selection.ShapeRange(1).LockAspectRatio = msoTrue
> --
> Amazing PPT Hints, Tips and Tutorials
>
> http://www.pptalchemy.co.uk/powerpoi...tutorials.html
> _______________________________
>
>
>
>
> "Team" wrote:
>
> > How can I check the "lock Picture aspect ratio" option in PowerPoint 2003
> > programmatically?
> > -----------------------------------
> > I have created a single slide presentation and insert a picture on the slide
> > by doing the following:
> > 1. Insert a Shape
> > 2. Slect the shape -> Right Click -> Format AutoShape -> Colors and Lines
> > -> Fill: Fill Effects -> Picture -> Select Picture: Select an image from
> > folder and click the insert button. After clicking the insert button there is
> > an option to check -"Lock Picture Aspect Ratio". Is there any way to check
> > the "Lock Picture Aspect Ratio" programmatically by using the PowerPoint
> > object model?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PPt 2007: Lock picture aspect ratio CalTex Microsoft Powerpoint 1 7th Apr 2009 07:51 PM
Fill Effects "Lock Aspect Ratio" in Powerpoint 2007? Corrinne Microsoft Powerpoint 2 18th Mar 2009 10:12 PM
Change aspect ratio of slide w/o changing aspect ratio of picture GCC - Mike Microsoft Powerpoint 2 5th Nov 2008 09:17 PM
Cannot Find Object "Lock Picture Aspect Ratio" =?Utf-8?B?TGF6emFyb25p?= Microsoft Excel Programming 1 20th Oct 2006 04:15 AM
Identifying graphics with "bad" scale / aspect ratio. =?Utf-8?B?THVuaWNvcm4=?= Microsoft Powerpoint 0 30th Apr 2006 05:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:19 PM.