Convert PowerPoint to SWF Flash

[ ]

The Save method exposed by Presentation class can be used to convert the whole presentation into SWF document.  You can also include comments in generated SWF by using SWFOptions class and INotesCommentsLayoutingOptions interface. The following example shows how to convert a presentation into SWF document by using options provided by SWFOptions class.

// The path to the documents directory.
    System::String dataDir = GetDataPath();

    // Instantiate a Presentation object that represents a presentation file
    auto presentation = System::MakeObject<Presentation>(dataDir + u"HelloWorld.pptx");

    auto swfOptions = System::MakeObject<SwfOptions>();

    auto notesOptions = swfOptions->get_NotesCommentsLayouting();

    // Saving presentation and notes pages
    presentation->Save(dataDir + u"SaveAsSwf_out.swf", SaveFormat::Swf, swfOptions);
    presentation->Save(dataDir + u"SaveNotes_out.swf", SaveFormat::Swf, swfOptions);