Skip to content

Commit a9e53a4

Browse files
Modified code in readme file
1 parent 3978c7a commit a9e53a4

File tree

1 file changed

+3
-3
lines changed
  • Getting-started/.NET/Create-PowerPoint-presentation

1 file changed

+3
-3
lines changed

Getting-started/.NET/Create-PowerPoint-presentation/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using (IPresentation pptxDoc = Presentation.Create())
3131
titleShape.TextBody.AddParagraph("Company History").HorizontalAlignment = HorizontalAlignmentType.Center;
3232
//Add description content to the slide by adding a new TextBox
3333
IShape descriptionShape = slide.AddTextBox(53.22, 141.73, 874.19, 77.70);
34-
descriptionShape.TextBody.Text = "IMN Solutions PVT LTD is the software company, established in 1987, by George Milton. The company has been listed as the trusted partner for many high-profile organizations since 1988 and got awards for quality products from reputed organizations.";
34+
descriptionShape.TextBody.Text = "IMN Solutions PVT LTD is the software company, established in 1987, by George Milton. The company has been listed as the trusted partner for many high-profile organizations
3535
//Add bullet points to the slide
3636
IShape bulletPointsShape = slide.AddTextBox(53.22, 270, 437.90, 116.32);
3737
//Add a paragraph for a bullet point
@@ -47,7 +47,7 @@ using (IPresentation pptxDoc = Presentation.Create())
4747
secondPara.LeftIndent = 35;
4848
secondPara.FirstLineIndent = -35;
4949
//Gets a picture as stream.
50-
FileStream pictureStream = new FileStream("Image.jpg", FileMode.Open);
50+
FileStream pictureStream = new FileStream(Path.GetFullPath(@"Data/Image.jpg"), FileMode.Open);
5151
//Adds the picture to a slide by specifying its size and position.
5252
slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16);
5353
//Add an auto-shape to the slide
@@ -56,7 +56,7 @@ using (IPresentation pptxDoc = Presentation.Create())
5656
stampShape.Fill.FillType = FillType.None;
5757
stampShape.TextBody.AddParagraph("IMN").HorizontalAlignment = HorizontalAlignmentType.Center;
5858
//Save the PowerPoint Presentation as stream
59-
using (FileStream outputStream = new FileStream("Sample.pptx", FileMode.Create))
59+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.pptx"), FileMode.Create))
6060
{
6161
pptxDoc.Save(outputStream);
6262
}

0 commit comments

Comments
 (0)