HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 1st, 2000, 06:04 AM
garswood garswood is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 21 garswood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 42 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 1st, 2000, 11:17 AM
mmonks mmonks is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 27 mmonks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Printing specific data from a table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT