I’m trying to use this code but it doesn’t work for me. I’m getting the picture icon instead of the Adobe Reader panel.
I have a globals variable of type MEDIA which is the dataprovider of the HTML_AREA in the form displaying the pdf.
I set the global like that just before showing the form:
Not really. It is recognized by most browsers compatible with HTML 3.2.
Although up till now it was not part of the official specs of 3.2 or 4 by the W3C which was recommending using instead.
I see here, http://download.oracle.com/javase/6/doc … sktop.html
that you even can do edit & print to native applications, directly from Java (from Java 1.6)
Do you know on which OS’s this is working? could not find any info about that.
I would be extra careful using this class directly from Servoy’s JavaScript…
As you can see from the javadocs, most of these methods have lots of edgy conditions where they will spill various exceptions, so enclose this in a try/catch block at least, or use it in a plugin - I would recommend that
Also if your client is running Java 5, this will not work and will spill a ClassNotFoundException.
But in Java 6, it should work on all platforms.
Also about the print() method, don’t expect it to do a ‘silent’ print… this will open the target application and print with it (and leave it opened as well, which might not be wanted).