## Document to Flash/SWF and HTML/SVG Conversion Sample in ASP

### Sample function:

This sample contains a web page that converts a document to Flash and HTML formats and shows the converted documents in the browser. The sample uses Print2Flash OLE Automation.

### Installation instructions:

1. Configure 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
2. Configure Internet Information Services (IIS):
   1. Create a virtual directory or a web site in IIS
   2. Copy the contents of the sample folder to the directory mapped to the virtual directory or root web site directory you created earlier
   3. Grant Read and Write permissions to the uploadedfiles and convertedfiles folders for the user under which IIS runs (usually IUSR_xxx) and for the user which credentials you specified at step 1c

### Usage instructions:

1. Open the sample page in the browser by navigating to default.asp page
2. The conversion of the uploadedfiles\textdoc.txt document should take place and the converted document should be shown in the browser after conversion is completed

### Notes

The sample does not demonstrate file uploading technique due to lack of a standard file upload method in ASP. File upload in ASP can be handled in a number of different ways so you should decide on proper file uploading technique yourself. See, for example, this MSDN knowledge base article: http://support.microsoft.com/kb/299692

Copyright (C) Print2Flash Software. All rights reserved | www.print2flash.com