relative to original picture size

T

tiamat

Hi

When I add embedded charts to a powerpoint presentation 2007 is there a way
that I can set 'Relative to original picture size' to be off in code?

I have tried using the ScaleHeight, ScaleWidth commands but they do not have
the desired effect. If anyone could tell me the property it would be
appreciated.

What I am trying to achieve is embed charts into powerpoint from Excel and
not have the user manually change the format object setting for 'Relative to
original picture size' to be unchecked for each chart. I am also hoping once
set I could modify the shape size.

At the moment my pseudo code looks like :

Initiialise and create powerpoint file
set source name to the correct chart reference
....

PowerPoint.Slide sld = ppPres.Slides.Add(ppPres.Slides.Count + 1
, PowerPoint.PpSlideLayout.ppLayoutTitleOnly);

PowerPoint.Shape chartShape = sld.Shapes.AddOLEObject(0, 0, 0, 0, ""
, workBookFilePathName
, Microsoft.Office.Core.MsoTriState.msoFalse
, "", 0, "",
Microsoft.Office.Core.MsoTriState.msoTrue);

chartShape.LinkFormat.SourceFullName = sourceName;
chartShape.LinkFormat.Update();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top