- .Net PrintDocument class
- a third party library (on-demand printing)
- ghost script + ghostview
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683502.aspx
http://stackoverflow.com/questions/15834064/printing-from-windows-service-on-windows-8-fails
Well another day past and some lost hairs (due to hair pulling) I found a web post about a utility class that creates a "Raw" print job and I thought it may work because Windows won't treat it as calling or executing another windows app or windows process which the Windows Service doesn't like to do. So I give it a go and it works! See the section of the page where it says "2. Mit VB.Net RAW-Daten an den Drucker senden" which translate to "Send With VB.Net RAW data to the printer". (Note: The website is in german language. Thank you Germany!)
http://www.vbarchiv.net/tipps/tipp_2375-kassenbon-drucker-mit-vbnet-oder-c-per-esc-pos-befehle-ansprechen.html
No comments:
Post a Comment