Created
September 16, 2021 14:47
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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