473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

exact page breaks

pradeepjain
563 512MB
I have 10-11 tables in an html page .I need to take a print out of this page .but few tables half part comes in next page . is there a way to give a page break so that i can limit number of entries in one page .say 2 per page .
Feb 14 '09 #1
4 1229
hsriat
1,654 Expert 1GB
The print media type in CSS may help you (not sure).
Or you can create PDF of the page (search for some free library).
Feb 14 '09 #2
Markus
6,050 Expert 4TB
You could use pagination? Otherwise, I'm not sure this question is PHP related.
Feb 14 '09 #3
pradeepjain
563 512MB
hey i used simple method and it worked !!!!

since i had a count saying $i for a loop
i used
Expand|Select|Wrap|Line Numbers
  1.  if(($i % 2)==0)
  2.     {
  3. print("<p style='page-break-before: always'></p> ");
  4.     }
  5.  

so it gives a page break after 2 tables .But it will show up only while printing ... :) ...
Feb 15 '09 #4
hsriat
1,654 Expert 1GB
That seems to be a good choice!
Feb 15 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Scott | last post by:
Was not sure if this was the place to post this or not, so if not, can someone point me in the right direction. Here is my problem - I have an ASP page the is generating a file with HTML that is...
14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
4
by: Ben | last post by:
I have a page for my company that I need assistance with: http://www.eastex.net/ben/NewETN/subPage.htm When you resize the window (NS or IE) small enough that you have to scroll horizontally...
2
by: darrel | last post by:
We have a bunch of usercontrols we are using on our site. One of them calls functions in a compiled DLL (is that a 'resource' in VS.net terminology?) The pages that contains all of these controls...
2
by: tomh | last post by:
I have a repeater which displays records from a database in table form. Each record is placed in its own table of about 3 columns and ten rows. This website is intended to be printed and prints out...
1
by: kaosyeti | last post by:
hey... i have a report that groups on salespeople. the report footer is a three part summary of the store's total data with 2 different departments for parts 1 and 2 and a store total for part 3. ...
5
by: Jens | last post by:
Posted to: comp.periphs.printers comp.lang.c comp.lang.postscript Hello, I am looking for some publically available methods/algorithms or C source code for detecting
0
by: bblue | last post by:
hi, I need help in implementing page breaks in XML files? any suggestion on how can this be done? do you recommend using processing instructions or add a new elements would make more sense? can the...
5
by: Andreas Prilop | last post by:
Firefox 3 (like older versions) ignores TR { page-break-before: always } for the first row of a TBODY. Sample page: http://www.unics.uni-hannover.de/nhtcapri/temp/1000.html Choose "Print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.