title: AS3: Print Job without Print Dialog Box/Print Setup Dialog
body: <p>Is there a way to print a job without the print dialog box.It will look for the default printer then it will also print all pages.After I click the print button, inside of the movieclip will be print all. Then how can I do it? I don't need AS3 swf not Air if possible..</p>
  
  <p>Here's the code I'm using..</p>
  
  <pre><code>print_btn.addEventListener(MouseEvent.CLICK,printContent);
  
  function printContent(evt:MouseEvent) {
      var printJob:PrintJob = new PrintJob();
  
      if (printJob.start()) {
  
          if (content_mc.width&gt;printJob.pageWidth) {
              content_mc.width=printJob.pageWidth;
              content_mc.scaleY=content_mc.scaleX;
          }
  
          printJob.addPage(content_mc);
  
          printJob.send();
      }
  }
  </code></pre>
  
  <p>NOTE:</p>
  
  <p>I already used the start2() but this code is for AIR.</p>