Home > Forum, Guestbook & Blog

Go Back   The Den of Discourse > Guestbook / Forum

 
 
Thread Tools Display Modes
Old 21st April 2005, 08:30 AM   #1
Marcos Mamede
Guest
 
Posts: n/a
Change print settings using Javascript

Dave,

I read the post "Change print settings using Javascript" on Media College and i saw that Rajesh didn't send the javascript to control printer settings on IE.

Well, bellow you can see the answer using ScriptX, an Active X produced by Meadroid Company.

This component is recommended on article
http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/dnscrpt/html/dhtmlprint.asp and its page is http://www.meadroid.com/scriptx/index.asp.

It has paid advanced options and free basic options.

In your HTML Page you have to put this:

function myPrint(frame) {

factory.printing.leftMargin = 1.0;

factory.printing.topMargin = 1.0;

factory.printing.rightMargin = 1.0;

factory.printing.bottomMargin = 1.0;

factory.printing.portrait = false;

factory.printing.Print(false, frame); // print without prompt
}

And, remember, put ScriptX.cab file into your application directory.

Best regards and i'm sorry if i made a mistake in english.

Marcos Mamede
Brazilian .NET Programmer




 
Old 25th July 2005, 08:22 PM   #2
uday
Guest
 
Posts: n/a
Re: Change print settings using Javascript

I need it to be browser independent too.




 
Old 25th July 2005, 08:22 PM   #3
uday
Guest
 
Posts: n/a
Re: Change print settings using Javascript

I need it to be browser independent too.




 
Old 25th July 2005, 08:22 PM   #4
uday
Guest
 
Posts: n/a
Re: Change print settings using Javascript

I need it to be browser independent too.




 
Old 8th October 2005, 07:06 PM   #5
Ravi Kumar
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi,
How are you
I want to get the setting from client system and generate report for selected printing setting.

Thanks




 
Old 8th October 2005, 07:06 PM   #6
Ravi Kumar
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi,
How are you
I want to get the setting from client system and generate report for selected printing setting.

Thanks




 
Old 8th October 2005, 07:06 PM   #7
Ravi Kumar
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi,
How are you
I want to get the setting from client system and generate report for selected printing setting.

Thanks




 
Old 9th October 2005, 01:17 PM   #8
Dave
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi Guys,

You're at the wrong website - this is just my guestbook, not a help forum. You need to post these messages at http://www.mediacollege.com/forum/forumdisplay.php?f=16

When you do, please be very specific about what you want to do. The more information the better.

Cheers,
Dave


 
Old 9th October 2005, 01:17 PM   #9
Dave
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi Guys,

You're at the wrong website - this is just my guestbook, not a help forum. You need to post these messages at http://www.mediacollege.com/forum/forumdisplay.php?f=16

When you do, please be very specific about what you want to do. The more information the better.

Cheers,
Dave


 
Old 9th October 2005, 01:17 PM   #10
Dave
Guest
 
Posts: n/a
Re: Change print settings using Javascript

Hi Guys,

You're at the wrong website - this is just my guestbook, not a help forum. You need to post these messages at http://www.mediacollege.com/forum/forumdisplay.php?f=16

When you do, please be very specific about what you want to do. The more information the better.

Cheers,
Dave


 
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +13. The time now is 07:27 AM.