Skip to content

Instantly share code, notes, and snippets.

@aspose-com-kb
Created September 16, 2021 14:47
Show Gist options
  • Save aspose-com-kb/10cc66908c8ccd120075ed27f881c6cd to your computer and use it in GitHub Desktop.
Save aspose-com-kb/10cc66908c8ccd120075ed27f881c6cd to your computer and use it in GitHub Desktop.
Print PowerPoint Presentation in C#. More details and steps can be found here https://kb.aspose.com/slide/net/how-to-print-powerpoint-presentation-in-c-sharp/
using System;
using Aspose.Slides;
namespace PrintPresentationinC_Sharp
{
class Program
{
static void Main(string[] args)
{
License license = new License();
license.SetLicense("Aspose_Slides_NET.lic");
string PathForPrintingPptFile = @".\";
//Instantialte Presentation object to print PowerPoint presentation
Presentation PrintPptxPresentation = new Presentation(PathForPrintingPptFile+"PrintPres.pptx");
//Call the Print method to print PowerPoint presentation on desired printer
PrintPptxPresentation.Print("LaserJet1100");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment