JavaScript - How can I change the print settings / page settings of an web page using JavaScript.

Asked By Sonjoy Chakraborty on 03-Jan-07 08:14 AM

How can I change the print settings / page settings of an web page using JavaScript.  

 

 

check out example here printing asp.net page

K Pravin Kumar Reddy replied to Sonjoy Chakraborty on 02-Jan-07 08:38 AM

hello

Print this Page - Comparing Classic ASP to ASP.NET

http://www.4guysfromrolla.com/webtech/030602-1.shtml

How the "Print this Page" Script Works

http://www.4guysfromrolla.com/webtech/080600-1.shtml

Printing an ASP.NET Web Form When It Is Submitted

http://aspalliance.com/462

for custom printing requirements,

mv ark replied to Sonjoy Chakraborty on 03-Jan-07 06:27 AM
check out ScriptX - http://www.meadroid.com/scriptx/

The technical usage details are available here - http://www.meadroid.com/scriptx/docs/printdoc.htm

I am trying to print this document but, in print preview mode, the selection radio should get in selected mode. If, I click print, the printing job should get started automatically.

Sonjoy Chakraborty replied to mv ark on 03-Jan-07 08:19 AM
I am trying to print this document but, in print preview mode, the selection radio should get in selected mode. If, I click print, the printing job should get started automatically. This should be done using default Javascript without installing any 3rd party component.
I need to print the document by invoking the javascript :print() function. In that case, the dialog should always appear by selectiong the "Selection" radio.
Sonjoy Chakraborty replied to K Pravin Kumar Reddy on 03-Jan-07 08:22 AM

Hi Praveen.

Thankx for your instant reply. But, I need to print the document by invoking the javascript :print() function. In that case, the dialog should always appear by selectiong the "Selection" radio.

Please reply.
Sonjoy.