Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Sampe code to print HTML not just txt ???

 

I see the sample code posted for printing a .txt file, but what about printing an HTML file?

 

I need a way to do the same thing, only print an HTML file?

 

Is there a way to do this, like hosting an HTML control then doing a print-preview, then print?

 

Of course, I could call IE, but the user might have a different browser chosen for default and that can cause some dependencies.

 

Anyway to do same as code below but for HTML?

Posted
I don't think IE exposes a Print Method because Microsoft is really stupid sometimes, the user is the only one who can print the HTML page unless you write your own Web Browser Control.
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
  • 2 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...