I want to remove a specific slide from a PowerPoint presentation using C #. Can someone help me with this?
Open the PowerPoint stack and regular COM and use
var powerPoint = new Microsoft.Office.Interop.PowerPoint.Application(); var presentation = powerPoint.Presentations.Open(fileName); presentation.Slides[x].Delete; presentation.Save();
You might want to check out Aspose for .NET . It provides a ton of libraries for interacting with Office file formats.
Source: https://habr.com/ru/post/1730500/More articles:How to avoid leakage to prevent XSS attacks? - escapinghow to allow ruby ββto use default browser to open local file - ruby ββ| fooobar.comCan I reset an event from the main page on ASPX? - asp.netApplication of large-scale periodic tasks using the MFC application based on Dialog - c ++Why can a CSRF attack be prevented by a random CSRF secret? - securityAny way to execute inline javascript as a url? - javascriptFinding a set of add-ons on Unix - linuxConverting decimal to binary numbers - computer-scienceHow to fix frame accuracy in OpenGL - c ++Getting COM objects from unmanaged code - c #All Articles