Hi David,

Which OS is this?  I suggest you add in your code a check if Sides.DUPLEX is
supported by calling isAttributeValueSupported and let me know its return value.

Thanks.

Jennifer

> Delivered-To: [EMAIL PROTECTED]
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
> Date: Wed, 21 Aug 2002 14:59:06 +0200
> From: David Ortega del Campo <[EMAIL PROTECTED]>
> Subject: [JAVA2D] problems when printing with the duplex option
> To: [EMAIL PROTECTED]
>
> Hi
> Currently we are printing documents from Java, but we have problems when
> printing images with the duplex option. We set DUPLEX option when printing,
> but the printer don't print boths sides of the pages (Our printer suports
boths sides mode). Our code is similar
> to:
>
>     PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
>     aset.add(Sides.DUPLEX);
>     DocFlavor psInFormat = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
>     PrintService[] services =
> PrintServiceLookup.lookupPrintServices(psInFormat, aset);
>     if (services.length > 0)
>     {
>       try{
>         PrinterJob printerjob = PrinterJob.getPrinterJob();
>         ...
>
> Thanks for any insights.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to