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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Alex SmithRank #4,089 · 366 reputationPosted Oct 22, 2014, 10:40 PM EDT
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 ValechaRank #794 · 2.9K reputationPosted Oct 20, 2014, 10:28 PM EDT
What image you want to generate in ppt ??
There are shapes, charts, pictures, etc in power point.
You can use all of them.
syed zubair6 reputationPosted Oct 21, 2014, 3:35 AM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Oct 21, 2014, 3:40 AM EDT
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.