Aspose.Slides.Examples.CSharp.Rendering.Printing.SpecificPrinterPrinting.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Rendering();

            try
            {

                // Load the presentation
                Presentation presentation = new Presentation(dataDir + "Print.ppt");

                // Call the print method to print whole presentation to the desired printer
                presentation.Print("Please set your printer name here");

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + "\nPlease set printer name as string parameter to the Presentation Print method");
                       
            }

        }
    }
SpecificPrinterPrinting