not have jsp or java sdk

Using OLE Automation API
Post Reply
lotuo
Posts: 1
Joined: Thu Nov 20, 2008 1:46 am

not have jsp or java sdk

Post by lotuo » Thu Nov 20, 2008 1:51 am

why not have jsp or java sdk?
i want use print 2flash on the web

staff
Posts: 281
Joined: Sat Dec 15, 2007 4:48 pm

Re: not have jsp or java sdk

Post by staff » Wed Nov 26, 2008 8:26 pm

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::

Code: Select all

java TestPrint2Flash C:\docs\sample.doc
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:

Code: Select all

IDispatch p2f = new IDispatch(rm, "P2F.Server");
with this one:

Code: Select all

IDispatch p2f = new IDispatch(rm, "P2F.Server2");
Also, you need to configure Print2Flash Service as described here: http://print2flash.com/help/SettingupAu ... ccount.php
Attachments
javasample.zip
(2.87 KiB) Downloaded 995 times

Post Reply