Hi guys,
I am working on an web application(MVC4+C#). I need to make a Custom Print Dialog Box (in that dialog box, I can add some more controls). I do it through win32 API, and I am able now to add a new check box control in Print Dialog Box. I have one doubt
regarding printing current web page. I am not getting any object where I can get the current open web page that would be printed.
I tried it with System.Drawing.Printing.PrintDocument, but I can not set the web url in System.Drawing.Printing.PrintDocument.DocumentName (It accept only system path). I searched a lot on google and in some post I got that Web Browser Control can be used
for this purpose. I am creating an object of web browser control and Navigate it again the current opened page, and web browser control has Print() method to print the Navigated URL page. I have pasted below the code to use webbrowser control to print the
given url.
public void PrintIt()< ...
Go to the complete details ...