Console app printing

  • Thread starter Thread starter evidica
  • Start date Start date
E

evidica

Does anyone know how to print an HTML file with images in a console
application?
 
Hello (e-mail address removed),

How do u imagine this?
console doesn't show images, only textual information

What u can do is to create WebBrower window and show html there
Does anyone know how to print an HTML file with images in a console
application?
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
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.

Cheers.
 
Hello (e-mail address removed),

See there http://groups.google.com/groups?q=dotnet+print+HTML
This topic was risen numerous of times

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.
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

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.

Ask a Question

Back
Top