need help with page breaks
Moderator: General Moderators
need help with page breaks
im using fopen functions right now coz we need reports to be in txt format. In this report, we need to go to another page once we got 30 rows of the table we're calling. Problem is, i dont know how to call a page break using fwrite. All i know is carriage return (\r) and newline (\n).
Is there a command for page breaks?
Thanks for the help in advance.
Is there a command for page breaks?
Thanks for the help in advance.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
The only way I know of making a page break is the css attribute .. do a quick search on google "page break css"
I could be completely off here though..
I could be completely off here though..
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Hrm, after some research, you can appearently use the unicode \u000C, which I think represents a form feed.
http://forum.java.sun.com/thread.jspa?t ... ID=2117010
Notepad doesn't use this, but WordPad does. Use chr(12) to output the form feed.
If you wrote it to a txt file and opened it in WordPad it should print it on three pages. Copying the source of the output of that into WordPad works as well.
No clue what other text editors would do.
http://forum.java.sun.com/thread.jspa?t ... ID=2117010
Notepad doesn't use this, but WordPad does. Use chr(12) to output the form feed.
Code: Select all
<?php
echo "Page 1";
echo chr(12);
echo "Page 2";
echo chr(12);
echo "Page 3";
?>No clue what other text editors would do.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: