how to generate image in power point can you please help me anyone please help me out..
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Alex SmithPosted Oct 23, 2014, 2:40 AM
using System;
using System.Drawing;
using Spire.Presentation;
using Spire.Presentation.Drawing;
namespace InsertImageToPPT
{
class Program
{
static void Main(string[] args)
{
//create PPT document and load the file
Presentation presentation = new Presentation();
presentation.LoadFromFile("sample.pptx");
//insert image to PPT
string ImageFile2 = @" test.png";
RectangleF rect=new RectangleF(50, 100, 600, 245);
presentation.Slides[0].Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile2, rect);
presentation.Slides[0].Shapes[0].Line.FillFormat.SolidFillColor.Color = Color.FloralWhite;
//save the document
presentation.SaveToFile("InsertPicture.PPTx", FileFormat.PPTx2010);
System.Diagnostics.Process.Start("InsertPicture.PPTx");
}
}
}
Riddhi ValechaPosted Oct 21, 2014, 7:40 AM
http://forums.asp.net/t/1624984.aspx?How+to+export+a+PNG+image+form+aspx+web+page+to+Power+point+
-----
This method worked for me.
I tried this.
syed zubairPosted Oct 21, 2014, 7:35 AM
Riddhi ValechaPosted Oct 21, 2014, 2:28 AM
What image you want to generate in ppt ??
There are shapes, charts, pictures, etc in power point.
You can use all of them.