|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone help.
The problem is this. I need to be able to print address labels to send literature to customers. I am getting the postal details from a form. I have seperated the data out that I need and put it in its own page now all I need to do is print it. I have tried print() but this prints the whole page including URL and the print button itself |
|
#2
|
|||
|
|||
|
You could get around this by opening the postal details in a popup window, and specify that the popup window have no menu bar/toolbar etc. So, in effect, when you hit the print button submit a form containing your data to a popup window using code similar to this -
function sendForm(){ //set the action of the form document.form_name.action="PrintPopUp.asp"; //open a popup window window.open('','PopUp1','toolbar=no,status=no,scrollbars=no,resizable,menubar=no,width=520,height=45 0'); //set the target of the form to be the new popup window document.form_name.target="PopUp1"; //submit the form document.form_name.submit(); } Then you can use your print code within the new popup window to print it - it should then print without any toolbars etc. You can chang the attributes in the window.open() statement to suit your needs. Hope it helps, Matt. <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by garswood: Can anyone help. The problem is this. I need to be able to print address labels to send literature to customers. I am getting the postal details from a form. I have seperated the data out that I need and put it in its own page now all I need to do is print it. I have tried print() but this prints the whole page including URL and the print button itself[/quote] [This message has been edited by mmonks (edited September 01, 2000).] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Printing specific data from a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|