public static void PrintBySpecificPrinter() { string MyDir = @"Files\"; //Load the presentation PresentationEx asposePresentation = new PresentationEx(MyDir + "Print.pptx"); //Call the print method to print whole presentation to the desired printer asposePresentation.Print("LaserJet1100"); }
public static void PrintByDefaultPrinter() { string MyDir = @"Files\"; //Load the presentation PresentationEx asposePresentation = new PresentationEx(MyDir + "Print.pptx"); //Call the print method to print whole presentation to the default printer asposePresentation.Print(); }