I dont want to display anything to the user, I just want to have an
HTML document with images and print it with images on the paper without
displaying anything.
you can save that html and simly send that file to the printer/
or you can create more "printer friendly" format from the html and send
that file to the printer
no display is needed
This is a workaround. Some one may come with a better solution.
Take a new form and put a PrintDocument control on it. In form_load hide the
form itself. Call a method to put your HTML file on the PrintDocument. Call
PrintDocument.Print(). In the end of PrintDocument_PrintPage() close the form.
BTW, as one case is to use
"rundll32.exe mshtml.dll,PrintHTML %1"
where %1 path to your html to send html to printer
I dont want to display anything to the user, I just want to have an
HTML document with images and print it with images on the paper
without displaying anything.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.