How could I print rendered HMTL?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a string object filled with HTML text. I would like to have the text
rendered and printed out onto paper. Any ideas on how to do this?

Is there maybe a way to get this text into a TextArea that is configured to
render HTML and then print it's contents to paper?
 
MrNobody,

What you could do is save the string to a file. Then, you can call
MSHTML through rundll32.exe in order to print the contents of the file
(assuming it is HTML). For more information, check this link out.

http://sastools.com/b2/post/79393894

To do this in .NET, you would have to start a new process instance
(using the Process class) and then pass the command line through there.

Hope this helps.
 
ah, excellent idea! Thanks for the link

Nicholas Paldino said:
MrNobody,

What you could do is save the string to a file. Then, you can call
MSHTML through rundll32.exe in order to print the contents of the file
(assuming it is HTML). For more information, check this link out.

http://sastools.com/b2/post/79393894

To do this in .NET, you would have to start a new process instance
(using the Process class) and then pass the command line through there.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

MrNobody said:
I have a string object filled with HTML text. I would like to have the text
rendered and printed out onto paper. Any ideas on how to do this?

Is there maybe a way to get this text into a TextArea that is configured
to
render HTML and then print it's contents to paper?
 

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