Saltar al contenido
OFFICE · COMPLETE

PresentationEditor

Crea y edita presentaciones en el navegador; abre y guarda archivos PowerPoint y OpenDocument.

Crea y edita presentaciones en el navegador, abriendo y guardando archivos PowerPoint y OpenDocument.

Por qué ayuda

  • Abre y guarda .pptx, .ppt, .odp
  • Diapositivas, formas y gráficos
  • Presentación de diapositivas

Dónde encaja

  • Presentaciones comerciales
  • Formación
  • Informes
El control PresentationEditor en una página de RayCraft

Ejemplo

<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;
    }
}

Un breve fragmento. Añade @using RayCraft.Blazor.Components a tu página y usa un modo de renderizado interactivo.

Forma parte de RayCraft Complete.

Todos los controles ยท Documentación