<ul dir="auto">
<li>Electron version:0.37.2</li>
<li>Operating system: Windows 7 Pro 64 Bits</li>
<li>node: 4.4.2</li>
</ul>
<p dir="auto">I'm working on a Kiosk App and i use my Macbook to do it, but, the soft will run on Windows, so, i did everything on my macbook, and everything works fine, but, when i was on the windows machine and build the release for windows, it doesn't print, and don't show any error, so idk how to debug it.</p>
<p dir="auto">I'm using the Printer Api included in Electron, and like i said, in osx it works !, i'm doing this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var window = BrowserWindow.getFocusedWindow();
window.webContents.print({
    silent:true
});"><pre class="notranslate"><code class="notranslate">var window = BrowserWindow.getFocusedWindow();
window.webContents.print({
    silent:true
});
</code></pre></div>
<p dir="auto">The thing is, if i use the print with <code class="notranslate">silent:false</code> and i select some printer it send the task, but it's never printed (i can saw just for a sec the print queue but it disappear immediately). So, i tried to do a <code class="notranslate">printToPDF()</code> and it works, it saves the PDF, i can see it.</p>
<p dir="auto">I tried to send the task to a "PDFGenerator printer" and it generates a PDF but, it says that it's "not a pdf or corrupt"</p>
<p dir="auto">I hope this make sense to anyone.</p>
<p dir="auto">Related issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147000985" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/5093" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/5093/hovercard" href="https://github.com/electron/electron/issues/5093">#5093</a></p>
<p dir="auto">PD: I just make the same question on <a href="http://stackoverflow.com/questions/36509989/electron-printing-on-windows-doesnt-work" rel="nofollow">Stackoverflow</a> and <a href="https://discuss.atom.io/t/printing-on-windows-doesnt-work/27674" rel="nofollow">atom.discuss</a></p>
<ul dir="auto">
<li>Electron version: 0.37.2</li>
<li>Operating system: Windows 7 64-bit</li>
</ul>
<p dir="auto">I have tried to call <code class="notranslate">mainWindow.webContents.print</code>, which showed the printer dialog but when I choose the printer, it just does nothing. Not even an error.</p>
<p dir="auto">I have tried with multiple printers such as physical and virtual one (like print to XPS/PDF).</p>
<p dir="auto">I suspect its my code, so I tried this <a href="https://github.com/hokein/electron-sample-apps/tree/master/printing">this example</a> as well but I got same result.</p>
<p dir="auto">After that I tested it on another computer (Microsoft surface 4) and still nothing.</p>
<p dir="auto">Then  I run the same code on Mac OS, and it was working ok.</p>
<p dir="auto">So I'm confusing right now and wondering if anybody else have same issue or not...</p>
<p dir="auto">PS: <code class="notranslate">webContents.printToPDF</code> was also okay on windows since I guess has nothing to do with OS printing functionality.</p>