Shapes.AddPicture(...) - different behavior in Powerpoint 03 vs. 2

  • Thread starter Thread starter Wolf7
  • Start date Start date
W

Wolf7

Hi,

i'm experiencing the following issue:

I created an add-in for MS Powerpoint 2003 which adds pictures from a
webserver to a slide.

The code looks like that and works fine:

Code Snippet

//Insert Picture on current slide

PowerPoint.Shape imageShape = null;

PowerPoint.Shapes shapes = slide.Shapes;



imageShape = shapes.AddPicture("http://www.something.com/something.png",

Microsoft.Office.Core.MsoTriState.msoFalse,

Microsoft.Office.Core.MsoTriState.msoTrue,

100, 100, 300, 200);

Now I'm trying to build the same add-in for MS Powerpoint 2007 (same code
snippet), but it doesn't work.
It seems to be possible to add a picture from the local file system, but not
from a webserver.

Does anyone know why?
Is there a workaround?

Kind regards,
Wolfgang
 
Steve Rindsberg said:
I vaguely recall something about this being a deliberate change to PPT, a
security "feature" I think. Annoying.

Thanks for that. Do you know a source where I could find details about those
"changes"?

Kind regards,
Wolfgang
 
Wolf,

Did you managed to overcome this problem? what did you do about it eventually?

I've got the same problem.

Thank you!

Yair



Wolf wrote:

Shapes.AddPicture(...) - different behavior in Powerpoint 03 vs. 2
25-Sep-08

Hi

i'm experiencing the following issue

I created an add-in for MS Powerpoint 2003 which adds pictures from a
webserver to a slide

The code looks like that and works fine

Code Snippe

//Insert Picture on current slid

PowerPoint.Shape imageShape = null

PowerPoint.Shapes shapes = slide.Shapes


imageShape = shapes.AddPicture("http://www.something.com/something.png"

Microsoft.Office.Core.MsoTriState.msoFalse

Microsoft.Office.Core.MsoTriState.msoTrue

100, 100, 300, 200)

Now I'm trying to build the same add-in for MS Powerpoint 2007 (same code
snippet), but it doesn't work
It seems to be possible to add a picture from the local file system, but not
from a webserver

Does anyone know why
Is there a workaround

Kind regards
Wolfgang

Previous Posts In This Thread:

Shapes.AddPicture(...) - different behavior in Powerpoint 03 vs. 2
Hi

i'm experiencing the following issue

I created an add-in for MS Powerpoint 2003 which adds pictures from a
webserver to a slide

The code looks like that and works fine

Code Snippe

//Insert Picture on current slid

PowerPoint.Shape imageShape = null

PowerPoint.Shapes shapes = slide.Shapes


imageShape = shapes.AddPicture("http://www.something.com/something.png"

Microsoft.Office.Core.MsoTriState.msoFalse

Microsoft.Office.Core.MsoTriState.msoTrue

100, 100, 300, 200)

Now I'm trying to build the same add-in for MS Powerpoint 2007 (same code
snippet), but it doesn't work
It seems to be possible to add a picture from the local file system, but not
from a webserver

Does anyone know why
Is there a workaround

Kind regards
Wolfgang

Re: Shapes.AddPicture(...) - different behavior in Powerpoint 03 v

Thanks for that. Do you know a source where I could find details about thos
"changes"

Kind regards
Wolfgang

I vaguely recall something about this being a deliberate change to PPT, a
I vaguely recall something about this being a deliberate change to PPT, a
security "feature" I think. Annoying

You may need to add code to pull the image down to a file on the local drive
then insert it from there.


----------------------------------------
Steve Rindsberg, PPT MV
PPT FAQ: www.pptfaq.co
PPTools: www.pptools.co
================================================

Re: Shapes.AddPicture(...) - different behavior in Powerpoint 03 v

I'm not able to find anything about it right now, unfortunately

----------------------------------------
Steve Rindsberg, PPT MV
PPT FAQ: www.pptfaq.co
PPTools: www.pptools.co
================================================


Submitted via EggHeadCafe - Software Developer Portal of Choice
Get Silverlight 4 Installed: Tips and Tricks
http://www.eggheadcafe.com/tutorial...b-f54c56a64ed9/get-silverlight-4-install.aspx
 
Back
Top