HI,
How can we print an MS Word document from Java ???
We can print .txt files, but while printing .doc, it gives junk chars in print out when we set
DocFlavor docFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
I tried,
1.DocFlavor docFlavor = new DocFlavor("application/msword", "java.io.InputStream");
2. DocFlavor docFlavor = new DocFlavor("application/vnd.ms-word", "java.io.InputStream");
and got PrintJobFlavorException
It would be helpful if any one could help me out..
Thanks in advance..