Aspose.Slides.Examples.CSharp.Presentations.Conversion.ConvetToSWF.Run C# (CSharp) Method

Run() public static method

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

            // Instantiate a Presentation object that represents a presentation file
            using (Presentation presentation = new Presentation(dataDir + "HelloWorld.pptx"))
            {
                SwfOptions swfOptions = new SwfOptions();
                swfOptions.ViewerIncluded = false;

                // Saving presentation and notes pages
                presentation.Save(dataDir + "SaveAsSwf_out.swf", SaveFormat.Swf, swfOptions);
                swfOptions.ViewerIncluded = true;
                presentation.Save(dataDir + "SaveNotes_out.swf", SaveFormat.SwfNotes, swfOptions);
            }
        } 
    }
ConvetToSWF