About Printing Question...
Excuse me..
I have some project with PHP (Intranet)...
I have some question about reporting via html
1. How to give Header and Footer... ??
2. How to get num of lines from 1 web page ??
3. How to change the page ...
Example : 1 paper for 50 Lines..., But after line 30, I want change the page and Print another data...
In my case , my report like this :
Code:
Page : 1
Group 1
================================================
|Row 1 | EXPLANATION (Data Type : Text)
| |
| |
--------------------------------------------------------------
|Row 2 | EXPLANATION (Data Type : Text)
| |
| |
--------------------------------------------------------------
-> change page
Page : 2
Group 2
================================================
|Row 1 | EXPLANATION (Data Type : Text)
| |
| |
--------------------------------------------------------------
|Row 2 | EXPLANATION (Data Type : Text)
| |
| |
--------------------------------------------------------------
Is there a way to get number of lines from text data type ??
In my mind, I will get number lines, if it's reach the limit of pages, it'll get header and data again... Or Maybe another suggestion ???
Thanks For Your help ... :D :D :D
Re: About Printing Question...
Huh? PHP is server side and printing happens on the client side. PHP has absoultely nothing to do with printing.
As for your issue, it looks like you want to limit the amount of information per page. Honestly, I don't think you can do that even with JavaScript pragmatically, however; you could strategically place HTML elements to space them enough to seperate data onto pages.
Re: About Printing Question...
Actually, the CSS print module can force page breaks. You just have to find a browser that supports it properly.
I think you're better off getting one of those PHP PDF generation libraries.
Re: About Printing Question...
Quote:
Originally Posted by CornedBee
Actually, the CSS print module can force page breaks. You just have to find a browser that supports it properly.
I think you're better off getting one of those PHP PDF generation libraries.
If you decide to use a PDG library take a look at FPDF.
If your question has been answered can you mark this thread as resolved thanks.
Re: About Printing Question...
I try page break, it solve my problem little (my #3 question)
About page break, is there a way to show header in the page but not shown in web page ??? :D :D :D
About FPDF, i think i don't use it because the user must have Acrobat Reader and when i try it, it's heavy for some computer... :(
And How about my #2 Question ??? , Is there a way to count the number of lines of webpages , so i can combine with page break ??? :D :D