I am trying to build a system that will download formatted text from a web server, print the formatted text, confirm that the print job completed successfully and then respond to the web server to let it know the text was printed. All without user input.
I have had success using the Web Browser control to download HTML and then print it without needing user input. This falls short, however, on the ability to confirm the printing.
It looks like in System.Printing you can access a PrintServer and a PrintQueue and use that both to start print jobs and also find the status of print jobs.
I haven't yet been able to confirm a print job, but I have been able to initiate simple printing. However, this does not carry any of the HTML formatting from the web server. I'm not tied to HTML, but it has to be some formatting that can be produced by the web server so it can be altered without needing to update the client application.
How can I print the output from the web server, properly formatted, and know whether the print job succeeds or fails?