Name: rmT116609 Date: 09/01/2004
A DESCRIPTION OF THE REQUEST :
CR80 (3 3/8" x 2 1/8") is the most common size for cards, when you try to use a card printer (tested with Datacard SP55 and Datacard SP35 printers) on Windows 2000/XP it's not posible to select the CR80 page size (although you can with Windows 98 SE).
Since you can not use javax.print.attribute.standard.MediaSize to create a custom MediaSize, CR80 should be a standard one included on the JDK.
Card printers are not-so-uncommon peripherals, and with the actual behavior are unusable with Java unless you do some custom developments on the printer side, with a custom PrintService or something simmilar.
In order to use cards printers from Java applications we need a CR80 MediaSize definition.
EXPECTED VERSUS ACTUAL BEHAVIOR :
To be able to select CR80 as MediaSize when using card (only) printers.
Since the card printers usually only accepts card specific MediaSizes (CR80, sometimes CR50 also) you can not select any MediaSize present on JDK, and it selects javax.print.attribute.standard.MediaSize.NA.LETTER as default, messing the printer output.
(Incident Review ID: 301631)
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
4NT 6.01.233U Windows XP 5.1
A DESCRIPTION OF THE PROBLEM :
It is not possible to select a media size of US Standard Fanfold (14.875" x 11") in the printer setup dialogue because it is not defined in the javax.print.attribute.standard.Media* classes.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the sample below; pick a printer that should support US Std Fanfold paper. All other standard paper sizes are available except for that one.