Print Presentation

Aspose.Slides for .NET provides four overloads methods for printing of the presentations. These methods are flexible enough to print the presentation to the default printer or to any of the available printer with customized settings. You only need to select the appropriate print method according to the requirement.

Printing to default printer

Printing of the presentation to the default printer is quite simple in Aspose.Slides for .NET. Perform the following steps in order to print the presentation to default printer:
  • Create an instance of Presentation class to load a presentation that is to be printed
  • Call the Print method with no parameters as exposed by the Presentation object

 PresentationEx asposePresentation = new PresentationEx("Print.pptx");

            //Call the print method to print whole presentation to the default printer
            asposePresentation.Print();


Printing to specific printer

Printing of the presentation to the specific printer requires the name of the printer as parameter to the Print method of the Presentation. Perform the following steps in order to print the presentation to the desired printer:
  • Create an instance of Presentation class to load a presentation that is to be printed
  • Call the Print method of the Presentation class with printer name as string parameter to the Print method

 //Load the presentation
            PresentationEx asposePresentation = new PresentationEx("Print.pptx");

            //Call the print method to print whole presentation to the desired printer
            asposePresentation.Print("Printer Name");

Download

Last edited Mar 3, 2014 at 5:27 AM by asposemarketplace, version 2