title: Java Print program with Specifications?
body: <p>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>