why not have jsp or java sdk?
i want use print 2flash on the web
not have jsp or java sdk
Re: not have jsp or java sdk
We'll probably include full Java sample in the next version of Print2Flash SDK.
Currently you may take a look at the Java sample attached to this post. This sample uses JCom library (http://sourceforge.net/projects/jcom) for Print2Flash OLE Automation API access.
Please find attached the sample application files. To compile and run it, you need:
1. Install Print2Flash using its setup program unless you already did this
2. Download and install JCom library as described in their documentation:
Extract "jcom222.zip". And copy jcom.jar and jcom.dll to the following directories
jcom.dll -> (java.home)/bin/
jcom.jar -> (java.home)/lib/ext/
make sure the JAVA_HOME evironmental variable has been set, ie.
(java.home) == java.lang.System.getProperty("java.home");
3. Launch the application supplying the name of the document file you want to convert to Flash as a parameter like this::
We think you can convert this sample to JSP easily. However, if you intend to run it on a web server, you may need to run it under a different user account. You may achieve this if you use Server2 object instead of the Server object. i.e. you need to replace this line in the sample program:
with this one:
Also, you need to configure Print2Flash Service as described here: http://print2flash.com/help/SettingupAu ... ccount.php
Currently you may take a look at the Java sample attached to this post. This sample uses JCom library (http://sourceforge.net/projects/jcom) for Print2Flash OLE Automation API access.
Please find attached the sample application files. To compile and run it, you need:
1. Install Print2Flash using its setup program unless you already did this
2. Download and install JCom library as described in their documentation:
Extract "jcom222.zip". And copy jcom.jar and jcom.dll to the following directories
jcom.dll -> (java.home)/bin/
jcom.jar -> (java.home)/lib/ext/
make sure the JAVA_HOME evironmental variable has been set, ie.
(java.home) == java.lang.System.getProperty("java.home");
3. Launch the application supplying the name of the document file you want to convert to Flash as a parameter like this::
Code: Select all
java TestPrint2Flash C:\docs\sample.doc
Code: Select all
IDispatch p2f = new IDispatch(rm, "P2F.Server");
Code: Select all
IDispatch p2f = new IDispatch(rm, "P2F.Server2");
- Attachments
-
- javasample.zip
- (2.87KiB)Downloaded 1359 times