HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 ASP Free Forums Sponsor:
  #1  
Old May 10th, 2008, 05:48 PM
emmim44 emmim44 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 249 emmim44 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 6 h 37 m 55 sec
Reputation Power: 0
Red face CSS - Auto Print in Lanscape

I am trying to print each table in one paper. It does but when I use below style, it prints in portrait and the last page is blank... How will I print in landscape and eliminate last blank page without going to changing the print setting each time ?

Code:
<STYLE type="text/css">
		P {
	page-break-after:always
	}
</STYLE>

</head>
<body>
<p>
<table></table>
</p>
<p>
<table></table>
</p>
.
.
.
</body>

Reply With Quote
  #2  
Old May 11th, 2008, 02:22 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,291 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1Folding Points: 359459 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 14 h 16 m 8 sec
Reputation Power: 1802
you can't force such things on the browser.
most you can do is to give instructions to the user how to
change his/her print settings.

Reply With Quote
  #3  
Old May 11th, 2008, 07:11 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,385 ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 9 h 3 m 13 sec
Reputation Power: 307
Facebook
Quote:
Originally Posted by Shadow Wizard
you can't force such things on the browser.
most you can do is to give instructions to the user how to
change his/her print settings.

Actually, there are provisions that allow you to control [to some
degree[ the way the printer prints.

http://www.westciv.com/style_master...d/printing.html

It's CSS2, and I don't really know how well all the browsers are
gonna support it, but it's better than nothing!
__________________
Support requests via PM will be ignored!
Route of Queue | The General FAQ Thread | HOW TO POST A QUESTION

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #4  
Old May 11th, 2008, 10:26 AM
emmim44 emmim44 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 249 emmim44 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 6 h 37 m 55 sec
Reputation Power: 0
Thank you guys. I believe that I tested some time ago but didnt work... with ie 6.... there should be a way ... himmm..
Quote:
Originally Posted by ChiefWigs1982
Actually, there are provisions that allow you to control [to some
degree[ the way the printer prints.

http://www.westciv.com/style_master...d/printing.html

It's CSS2, and I don't really know how well all the browsers are
gonna support it, but it's better than nothing!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > CSS - Auto Print in Lanscape


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 4 hosted by Hostway
Stay green...Green IT