PC Review


Reply
Thread Tools Rate Thread

Cannot Find Object "Lock Picture Aspect Ratio"

 
 
=?Utf-8?B?TGF6emFyb25p?=
Guest
Posts: n/a
 
      19th Oct 2006
Can someone please tell me the object for "lock picture aspect ratio" for
pictures used in comments?

I want to programmatically prevent a photo from being distorted after I add
it to a comment box using the following code:
Selection.AddComment.Shape.Fill.UserPicture (Selection.Value)

I have found Selection.Comment.Shape.LockAspectRatio. But that only locks
the aspect ratio of the comment box itself, not the photo.

This is done conventionally in Excel in the following manner:
[Right-click comment border] > Format Comment… > Colors and Lines [tab] >
Fill: Color: Fill Effects… > Lock picture aspect ratio.

Thanks for your help.
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      20th Oct 2006
Lazzaroni,
Seems that MS forgot to include that in the Object Model. I cannot see a way
to achieve it directly in code.
If it is important to you, you could get the dimensions of jpg before you
load. Size your comment frame according then insert.

NickHK

"Lazzaroni" <(E-Mail Removed)> wrote in message
news:8BDE232C-6664-4F5D-9D69-(E-Mail Removed)...
> Can someone please tell me the object for "lock picture aspect ratio" for
> pictures used in comments?
>
> I want to programmatically prevent a photo from being distorted after I

add
> it to a comment box using the following code:
> Selection.AddComment.Shape.Fill.UserPicture (Selection.Value)
>
> I have found Selection.Comment.Shape.LockAspectRatio. But that only locks
> the aspect ratio of the comment box itself, not the photo.
>
> This is done conventionally in Excel in the following manner:
> [Right-click comment border] > Format Comment. > Colors and Lines [tab] >
> Fill: Color: Fill Effects. > Lock picture aspect ratio.
>
> Thanks for your help.



 
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
How can check "lock Picture aspect ratio" option in PowerPoint 200 Team Microsoft Powerpoint 2 28th Oct 2008 05:45 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 03:44 AM.