Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Apr 27, 2016 8:57 am

Thanks a lot! Will check on this in few hours.

Is there a way to apply a powerpoint theme to the generated PPT that I'm streaming to the client side?

Thank you for the kind and timely support!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Wed Apr 27, 2016 9:03 am

Hi,

Please use the method, presentation.Slides[0].ApplyTheme(SlideColorScheme scheme);

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Wed Apr 27, 2016 2:46 pm

Thanks. Can you provide some examples of such schemes? TNX

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Thu Apr 28, 2016 2:37 am

Hi,

I did a test for ApplyTheme() method and found that it is not available, so sorry. The function of applying theme has not been completed now. We will inform you when it is available.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Fri Apr 29, 2016 7:29 pm

That's fine...Thanks!

Another question: What is the VB code to stretch an image to cover the entire slide?

Thank you in advance!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Mon May 02, 2016 5:38 am

Hello,

Here is the code for stretching an image across slide fully.
Code: Select all
Dim presentation As New Presentation()
Dim ImageFile2 As String = "..\..\PPT.jpg"
Dim rect As RectangleF = New RectangleF(0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height)
presentation.Slides(0).Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile2, rect)
presentation.Slides(0).Shapes(0).Line.FillFormat.SolidFillColor.Color = Color.FloralWhite
presentation.SaveToFile("InsertPicture.PPTx", FileFormat.Pptx2010)

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri May 06, 2016 7:47 am

Hi,

Thanks for waiting.
Your issue that the result PPTX file cannot be opened by MS Powerpoint2010 when saving to PPTX file using presentation.SaveToHttpResponse(output, FileFormat.Pptx2010, Response) has been resolved. Welcome to download and test Spire.Presentation Pack Version:2.6.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Presentation

cron