Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Since I am new to WPF, need some help:
I want to create a WPF application to facilitate the feature like MS powerpoint, where I can have few slide layout(say like, Layout with header and subtitle, Header and Content) and select one of the layout and add content.
Once done adding content, I want the facility to save it as a ".ppt" file format and also to run a slideshow either while creating the file or even when I open already created ppt.

Note: I know that from WPF I can use the Microsoft.Office.Interop.PowerPoint or the Syncfusion to open the actual PPT application itself from the WPF app, but I don't want that. I need to create PPT like app.

What I have tried:

I tried using Wrap panel to have the textBoxes to which I can add some text. But If i want to save it, its just saves the text alone not with the layout.
Posted
Updated 26-Feb-19 3:15am
Comments
Richard MacCutchan 21-Feb-19 9:21am    
What is the problem with saving text? You can use a filestream or one of the many database systems that are supported in .NET.
sai sruthi 22-Feb-19 1:37am    
The problem is not saving the text, I want to save the whole layout not just the text. hope you getting the point, say for example, In any Presentation App, where there will be slides with different layout,so when we save or open a .ppt file it opens with the slide layout not not just the text.

See packages here: Best 20 NuGet powerpoint Packages - NuGet Must Haves Package[^]

This one looks promising, but it is for Winforms: Free Spire.Presentation for .NET - NuGet Must Haves Package[^]

This one supports WPF, but is not free: C# / VB.NET PowerPoint component - GemBox.Presentation[^]
 
Share this answer
 
v2
Comments
sai sruthi 22-Feb-19 1:34am    
Hi Rick, thanks for the quick reply, Spire.Presentation worked for WPF also but even though it is not opening the MS powerpoint, it opens the kingssoft Presentation which is installed in my system. But what I want is to create and run a slideshow within my WPF application with no dependency on any presentation app.
RickZeeland 22-Feb-19 3:53am    
And what happens if you run it on a system without any presentation software installed ? according to the info on the Spire website there should not be any dependencies.
sai sruthi 25-Feb-19 1:48am    
I haven't tried that way because I cannot uninstall the software that already exists in my laptop which i use for official work
RickZeeland 25-Feb-19 3:52am    
Then my advice is to run it in a Virtual Machine :)
Finally I found the workaround for this requirement.. still i cannot save the layouts as ppt but I can save it as XAML file by serializing the layouts. So when I try to open/ reload the file..it opens exactly as i created with all the control element along with the values.
I just followed the query in WPF C# Save Controls created at runtime[^]

Which worked fine for me. but still I need to figure out how to run a slideshow.
 
Share this answer
 
Comments
Maciej Los 26-Feb-19 9:28am    
It's quite simple! You have to change view every portion of time. Use Page Class (System.Windows.Controls) | Microsoft Docs[^]
See also: WPF Slideshow[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900