Java Printing API and Tobit FaxWare  
Author Message
Michael Justin





PostPosted: 2005-10-27 1:29:00 Top

java-programmer, Java Printing API and Tobit FaxWare This example for the Java Printing API

http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html#printable

creates different output in Suns JRE 1.4 and 1.5 (tested with Windows
2000). This can be easily checked using the 'print to file' option.

The different behaviour of the new 1.5 JRE is causing problems with the
Tobit FaxWare printer driver.

Tobit FaxWare detects special command strings in the document, which
start with @@, followed by a command name and optionally a space
character ($20, #32) and a character, finally @@ again. For example, the
receiver fax number is encoded as @@NUMMER +4996421@@. If a document is
printed on the FaxWare printer driver using JRE 1.4, the document will
be sent as a Fax to this number.

In JRE 1.5 however, the printer output contains the character $a0 (#160)
instead of space, this is causing an error message in Tobit FaxWare.

I would like to find the reason for this change but could not find
information in the JRE 1.5 releasenotes
(http://java.sun.com/j2se/1.5.0/compatibility.html#incompatibilities),
is there another place where i could find informations about the
background of this change?

Many thanks in advance,
Michael








 
Roedy Green





PostPosted: 2005-10-27 5:59:00 Top

java-programmer >> Java Printing API and Tobit FaxWare On Wed, 26 Oct 2005 17:29:24 GMT, Michael Justin <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>In JRE 1.5 however, the printer output contains the character $a0 (#160)
>instead of space, this is causing an error message in Tobit FaxWare.

Is the 160 coming from your data being translated to space in JDK 1.4-
or is space space being translated to 160 in JDK 1.5+?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.