Printing a Presentation

Skip to end of metadata
Go to start of metadata
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
 

Example

[C#]
//Load the presentation
Presentation asposePresentation = new Presentation("demo.ppt");

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

 
[Visual Basic]
'Load the presentation
Dim asposePresentation As Presentation = New Presentation("demo.ppt")

' 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
 

Example

[C#]
//Load the presentation
Presentation asposePresentation = new Presentation("demo.ppt");

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

 
[Visual Basic]
'Load the presentation
Dim asposePresentation As Presentation = New Presentation("demo.ppt")

' Call the print method to print whole presentation to the default printer
asposePresentation.Print("LaserJet1100")

 
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.