Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145276 | Jun 14,2019 05:31 PM UTC | Jun 20,2019 06:10 PM UTC | ASP.NET Core - EJ 2 | 2 |
![]() |
Tags: Presentation |
Launch date: 4/8, 4/18, 4/22
Need Launch date to come below the Turned off call text like this:
Launch date: 4/8, 4/18, 4/22
//Creates a new Presentation instance.
IPresentation pptxDoc = Presentation.Create();
//Adds a blank slide into the Presentation
ISlide slide = pptxDoc.Slides.Add(SlideLayoutType.Blank);
// Adds a textbox to hold the list
IShape textBoxShape = slide.AddTextBox(65, 140, 410, 100);
// Adds a new paragraph with the text in the left-hand side textbox.
IParagraph paragraph = textBoxShape.TextBody.AddParagraph("Turned off call to get the breakfast from Wendy's Launch date: 4 / 8, 4 / 18, 4 / 22");
//Sets the list type as Numbered paragraph.ListFormat.Type = ListType.Numbered;
//Sets the numbered style (list numbering) as Arabic number following by period.
paragraph.ListFormat.NumberStyle = NumberedListStyle.ArabicPeriod;
//Sets the starting value as 1
paragraph.ListFormat.StartValue = 1;
//Sets the list level as 1
paragraph.IndentLevelNumber = 1;
// Sets the hanging value
paragraph.FirstLineIndent = -20;
//Create new instance of memory stream MemoryStream outputStream = new MemoryStream();
//Save the Presentation
pptxDoc.Save(outputStream);
outputStream.Position = 0;
//Closes the Presentation
pptxDoc.Close(); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.