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:
- Launch the application executable file Release\convert2swf.exe
- 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
- Setup which buttons and controls you want to appear in the converted
document using set of checkboxes below
- 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:
- Launch Print2Flash Printing Application by clicking All
Programs/Print2Flash/Print2Flash Printing Application in Windows start menu
- Click Options/Print2Flash Service Configuration
- 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
- Check "Grant access and launch permissions to
Everyone" checkbox and click OK
- 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.