Skip to content
OFFICE · COMPLETE

PresentationEditor

Create and edit presentations in the browser; opens and saves PowerPoint and OpenDocument files.

Create and edit presentations in the browser, opening and saving PowerPoint and OpenDocument files.

Why it helps

  • Opens and saves .pptx, .ppt, .odp
  • Slides, shapes and charts
  • Slide show

Where it fits

  • Pitches
  • Training
  • Reports

Example

<PresentationEditor Presentation="_deck" Height="24rem" ReadOnly="true" ShowMenuBar="false" ShowNotes="false" ShowStatusBar="false" />

@code {
    private readonly Presentation _deck = BuildDeck();

    private static Presentation BuildDeck()
    {
        var p = new Presentation();
        var title = p.CreateSlide(SlideLayout.TitleSlide);
        ((AutoShape)title.Elements[0]).Paragraphs = [TextParagraph.Of("Read-only deck", align: TextAlign.Center)];
        ((AutoShape)title.Elements[1]).Paragraphs = [TextParagraph.Of("Browse, present and print", align: TextAlign.Center)];
        p.Slides.Add(title);

        var content = p.CreateSlide(SlideLayout.TitleAndContent);
        ((AutoShape)content.Elements[0]).Paragraphs = [TextParagraph.Of("Nothing can be changed")];
        ((AutoShape)content.Elements[1]).Paragraphs =
        [
            new TextParagraph { Bullet = BulletKind.Bullet, Runs = [new TextRun { Text = "The slide list and the slide show work" }] },
            new TextParagraph { Bullet = BulletKind.Bullet, Runs = [new TextRun { Text = "Saving and printing work" }] }
        ];
        p.Slides.Add(content);
        return p;
    }
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Part of RayCraft Complete.

All controls ยท Documentation