print html with

I have created a report that is formatted as html.  I need to print this using 2008.  The report is in memory, not a file or in a browser control.  Any guidance appreciated.

Who is Participating?
AmbusyConnect With a Mentor Commented:
Create a System.Windows.Forms.WebBrowser.
Write the HTML to a file (in your temp directory).
specify the file as the source for the webbrowser.  
WebBrowser.Url = New Uri(wrkFileName)

Open in new window

print it using:

Open in new window

dhenderson12Author Commented:
good call.  actually you can just use the webbrowser.documenttext to load memory html and then just call the print() method.  

thx for the help
did not know about the documenttext, will try it. I saved my text first! thank you too.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.