Document to Flash Conversion Sample in VBScript


Sample function:

This sample contains two VBScript programs that demonstrate various techniques that can be used to convert documents to Flash using Print2Flash OLE Automation. These script files are well commented so you should get a general idea by analyzing the code, executing the scripts and seeing the results. The samples folder also has P2FAPIConst.vb file which contains Automation API enumeration constants that you may include in your VB files.

Installation instructions:

Just unpack the sample folder to disk.

Usage instructions:

The sample contains two VBScript programs:

  1. ConvertFile.wsf - demonstrates various techniques that can be used to convert a single document to Flash;
  2. ConvertDir.wsf  - demonstrates various techniques that can be used to convert whole directories of documents to Flash.

The source text documents used for conversion are contained in docs folder. The output Flash (.swf) files are written to all subdirectories contained in the sample folder.

To launch a sample file, just double click it in Windows Explorer. The sample should convert a number of files and you may see Notepad printing window while the program works. After all documents have been converted, you should see "All documents have been converted" message. Then you may view the converted documents either by double clicking them in Windows Explorer or by right clicking them and choosing "Open With..." and then - Internet Explorer (if you do not see Internet Explorer there, select Choose Program and then  - Internet Explorer).

To clean up the directories from the Flash files created at previous runs, just launch cleanup.bat file.


Copyright (C) Print2Flash Software. All rights reserved

www.print2flash.com