title: How to get to print in DymoLabel printer using javascript?
body: <p>I just want to call the API's of Printer from a web page . and simply wanna print some stuff in it . I have done so far . </p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Sample DYMO Label Plug-In&lt;/title&gt;
  
  
              &lt;script src="http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js"
              type="text/javascript" charset="UTF-8"&gt;
  
  
              function OnLoad()
              {
                  //GetCurrentPlugin();
                  GetDYMOPrinters();
  
                  //GetPaperTray();
                  //GetMRUList();
                  //GetObjectNames();
                  //GetLabelImage();
              }
  
  
              function GetDYMOPrinters()
              {
                  alert(" Testing 1");
  
                  var printers = dymo.label.framework.getPrinters();
                  if (printers.length == 0)
                  throw "No DYMO printers are installed. Install DYMO printers.";
                  alert("dfdsfd");
                  var printerName = "";
                  for (var i = 0; i &lt; printers.length; ++i)
                  {
                      var printer = printers[i];
                      if (printer.printerType == "LabelWriterPrinter")
                      {
                          printerName = printer.name;
                          break;
                      }
                  }
  
              var label = DYMO.Label.Framework.Label.Open("MyText.label");
              label.SetObjectText("NameTxt", "John Smith");
  
              alert(" Testing 2");   // Here this alert also not working .
              label.print("DYMO LabelWriter 310");
              }
       &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body onload="OnLoad()"&gt;
           &lt;form action="" method="post" id="DYMOLabel"&gt;
          &lt;center&gt;
          &lt;h2&gt;DYMO Label  Example&lt;/h2&gt;
           &lt;input type=button value="Get DYMO Printers" onClick="GetDYMOPrinters()"&gt;
       &lt;/center&gt;
      &lt;/form&gt;
  
  
  
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But here nothing will happen , Is I need to import or include anything.? 
  please give some suggestion ..</p>