Document to Flash/SWF and HTML5/SVG Conversion Sample in Visual C++


Sample function:

This sample contains a Microsoft Visual C++ application that is capable of converting any printable documents to Flash and HTML5 formats using Print2Flash. The sample uses Print2Flash OLE Automation.

Installation instructions:

To install the sample just unpack the sample folder to disk

 Usage instructions:

  1. Launch the application executable file Release\convert2swf.exe
  2. Click Browse to select a document to convert. Remember you must have an application installed on your computer capable of printing of such type of documents. For example, to convert .doc files, you must have Microsoft Word installed
  3. Setup which buttons and controls you want to appear in the converted document using set of checkboxes below
  4. If you want to convert documents using another Windows user account for conversion, check Use Server2 Object option and perform a one-time configuration of Print2Flash Service:
    1. Launch Print2Flash Printing Application by clicking All Programs/Print2Flash/Print2Flash Printing Application in Windows start menu
    2. Click Options/Print2Flash Service Configuration
    3. Click Change Service Account and enter the name and the password for the user account under which you would like document conversion to take place. This may be the user account you use to login to Windows. User name should be specified in Domain\User format e.g. "WebDomain\p2fuser". If your computer is not on a domain, specify your computer name in Domain part
    4. Check "Grant access and launch permissions to Everyone" checkbox and click OK
  5. Click Convert File button. The document conversion should take place and the converted documents should appear in a child application window.

You may analyze the sample source code by opening solution file convert2swf.sln in Microsoft Visual Studio.


Copyright (C) Print2Flash Software. All rights reserved

www.print2flash.com