Java Print program with Specfications?
<p>Hii i want a java program for windows in which i can also send the print specification like Layout Orientation,Number of copies,Pages from and to,etc along with the file path to be printed.</p>

<p>M using This Code ,It works bt i can't provide the print Specifications?</p>

<pre><code>    import java.awt.Desktop;
   import java.io.File;
import java.io.IOException;

public class PrintFile {    

  public static void fileToPrint(File fis) {
    try {
      Desktop desktop = null;
      if (Desktop.isDesktopSupported())
      {               
        desktop = Desktop.getDesktop();          
      }   
       desktop.print(fis);    
       System.out.print("Printing Document");
    }
    catch (IOException ioe)
    {
      ioe.printStackTrace();
    }

  }
}
</code></pre>
