Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: PRINT A FORM


Message #1 by "sandra fernadez" <sandra_fz@h...> on Tue, 12 Mar 2002 09:15:55 +0000
Hai friend,



             I want to print a form with data that is being entered by me 

when I press the PRINT button.



I tried it this way :



set obj = window.open("puser.asp","winprint","directories=no button=no 

location=no menubar=no resizable=no scrollbars=yes status=no toolbar=no 

top=10 left=10 height=600 width=900 maximize=no minimize=no")

obj.print



The above command opens a seperate window and pops up a message box and asks 

to select the type of printer.  I want to avoid this message box.



I want to straight away print this report without opening a window.



When you take the print out it shows the filename as the footer and the 

current date.  I want to avoid this.



Please help me with a solution for the above method or any other easy way







SANDRA



_________________________________________________________________

Chat with friends online, try MSN Messenger: http://messenger.msn.com



Message #2 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Tue, 12 Mar 2002 08:52:07 -0500
Unfortunately you cannot avoid this pop up window that ask you for a

printer.

Its done for security purposes.



If you using intranet site you may check something about this subject

cause I think you'll need to defined your website as trusted website

on every users browser. But it just theory that should work but I never

checked it.



Oleg.



-----Original Message-----

From: sandra fernadez [mailto:sandra_fz@h...]

Sent: March 12, 2002 4:16 AM

To: ASP Web HowTo

Subject: [asp_web_howto] PRINT A FORM





Hai friend,



             I want to print a form with data that is being entered by me

when I press the PRINT button.



I tried it this way :



set obj = window.open("puser.asp","winprint","directories=no button=no

location=no menubar=no resizable=no scrollbars=yes status=no toolbar=no

top=10 left=10 height=600 width=900 maximize=no minimize=no")

obj.print



The above command opens a seperate window and pops up a message box and asks

to select the type of printer.  I want to avoid this message box.



I want to straight away print this report without opening a window.



When you take the print out it shows the filename as the footer and the

current date.  I want to avoid this.



Please help me with a solution for the above method or any other easy way







SANDRA



_________________________________________________________________

Chat with friends online, try MSN Messenger: http://messenger.msn.com








$subst('Email.Unsub').



Message #3 by =?iso-8859-1?Q?Jo=E3o_Cunha?= <jcunha@f...> on Wed, 13 Mar 2002 11:03:03 -0000

Hi,



About the header & footer that are printed, you can avoid this by

deselecting the apropriate features on the advanced properties of your

printer. I don't know if it can be done in the code. Anyone has a clue?



Joao



-----Original Message-----

From: sandra fernadez [mailto:sandra_fz@h...]

Sent: terça-feira, 12 de Março de 2002 9:16

To: ASP Web HowTo

Subject: [asp_web_howto] PRINT A FORM





Hai friend,



             I want to print a form with data that is being entered by me

when I press the PRINT button.



I tried it this way :



set obj = window.open("puser.asp","winprint","directories=no button=no

location=no menubar=no resizable=no scrollbars=yes status=no toolbar=no

top=10 left=10 height=600 width=900 maximize=no minimize=no")

obj.print



The above command opens a seperate window and pops up a message box and asks

to select the type of printer.  I want to avoid this message box.



I want to straight away print this report without opening a window.



When you take the print out it shows the filename as the footer and the

current date.  I want to avoid this.



Please help me with a solution for the above method or any other easy way







SANDRA



_________________________________________________________________

Chat with friends online, try MSN Messenger: http://messenger.msn.com








$subst('Email.Unsub').




  Return to Index