uwking
Newcomer
Hello all,
I am trying to programmatically print the current web page when I press a button.
I currently have the code as below, which uses the javascript print command.
-------------------------------------------------------------
btnPrint.Attributes.Add("onclick", "javascript:window.print();");
-------------------------------------------------------------
but this command brings up Print Dialog.
I do NOT want to see the print dialog.
All I want to do is when the user press the print button, it prints the current web page twice.
How can I do that?
I am not sure how to use PrintDocument for web pages instead of files.
Thanks for reading this!
I am trying to programmatically print the current web page when I press a button.
I currently have the code as below, which uses the javascript print command.
-------------------------------------------------------------
btnPrint.Attributes.Add("onclick", "javascript:window.print();");
-------------------------------------------------------------
but this command brings up Print Dialog.
I do NOT want to see the print dialog.
All I want to do is when the user press the print button, it prints the current web page twice.
How can I do that?
I am not sure how to use PrintDocument for web pages instead of files.
Thanks for reading this!