4
Answers

Print current webpage by ActiveX .NET ( System.Drawing.Printing Namespace )

Ask a question
Hello

I 'm new member and this first question :) 
I 'm being develop ActiveX control which embedded in html page to
control printing in client side with .NET 3.5 , C#

My diagram shown this.

Printer <-- Client Web Browser  <---> Web Server

Requirement is print current webpage with single click. No print dialog
, no confirm and can select printer to print by name , Can setup paper size , print quality etc.

At this time, I don't understand how to access in current page? I see System.Drawing.Printing.PrintDocument have Graphic element. 
This my idea . I 'm will capture current page in image file (but now is not know how what to do :P )
and create PrintDocument from that image file. Good idea or bad please explain ?

Thanks and regards.

Ps. sorry for english sentence if make you difficult to read. I 'm not expert in english skill. I hope will better in next time :)

Answers (4)