Add images Into as a new Slide.

Add-in Express™ Support Service
That's what is more important than anything else

Add images Into as a new Slide.
 
Dileep Sankar




Posts: 85
Joined: 2009-02-20

Hello,
I created an application using C#.net 2008 and also Addin Express 4.4 Demo Version.I want to insert a image as a new Slide.But I dont know wchich is the corresponding events in AdxPowerpointevents for inserting images into a slide.
Thanks
Dileep.
Posted 16 Mar, 2009 03:22:07 Top
Sergey Zapotylok


Guest


Hello Dileep,

You can use any event that you like, but use the AddPicture method to add???pictures.

Please see http://msdn.microsoft.com/en-us/library/bb870303.aspx article for more details and code snippets.
Posted 16 Mar, 2009 06:37:58 Top
Dileep Sankar




Posts: 85
Joined: 2009-02-20
Hello,
It is not working , some error happened in my project with C#.net 2008 and add-in express for .net .
Errors are,
***********
1) PowerPoint.Shape shape = slide.Shapes[2]; Cannot apply indexing with [] to an expression of type 'PowerPoint.Shapes'

2) Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

But i agreed that , this code is working in VSTO without add-in express in my project.
Is it working with Add-in Express .Please give me a reply.?


Posted 16 Mar, 2009 07:26:51 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hello Dileep.

You just need to use the same PIAs which you use in the VSTO project.
Or just rewrite the code to fix compilation errors.
E.g. PowerPoint.Shape shape = slide.Shapes.Item(2);
Posted 16 Mar, 2009 12:15:26 Top
Dileep Sankar




Posts: 85
Joined: 2009-02-20
Hello,
How can we add PIAs of vsto in my project.
Posted 17 Mar, 2009 02:45:02 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Just copy them from the GAC to the OfficePIAs subfolder of your project.
Posted 17 Mar, 2009 12:50:56 Top