Re: [JAVA2D] Problem in printing on specfic printer on network

2009-03-01 Thread Phil Race
You are probably right that the printer doesn't recognise the contents. DocFlavor.BYTE_ARRAY.AUTOSENSE is really no more than a way to send a stream of bytes to your printer. If the byte stream is a Postscript document (for example) and the printer is a PCL-only printer then its just never going

[JAVA2D] Problem in printing on specfic printer on network

2009-02-26 Thread java2d
Hi Everyone I am working one swing application which need to print on some specific printer on network. Method which I am using is given below. In this method i am passing the printer name as parameter and string which is to be printed is present in the class member [b]printString[/b].

Re: [JAVA2D] Problem in printing on specfic printer on network

2009-02-26 Thread java2d
Hi Jennifer Sorry I wrongly wrote it is not printString it is printContent, so now I edited it. I am trying your suggestion but I think so the problem that my doc favor is not recognized by printer. When I debugged my program execution goes to the printDataTransferCompleted() and then