Groups | Blog | Home
all groups > c# > march 2006 >

c# : printing html document


sudeep.kaul NO[at]SPAM gmail.com
3/26/2006 11:45:28 PM
Hi,

I want to print contents of html page without user intervention . Can
any one HELP ME ?
Jason Hales
3/27/2006 6:31:21 AM
If it's IE you'll need a bit of JavaScript to call document.print() but
for security reasons it will always show the user a dialog box to
confirm printing

For an intranet application I once wrote a .NET user control that was
hosted in IE using an OBJECT tag that gave me total control ver
printing - but there are a few permissions you have to set to allow
this sort of functionality.
AddThis Social Bookmark Button