how to make printable page

helo i have a project that allow user to print from … to …

so if i want print from id 1 to 10,it will generates a long html page with contain 10 sheet

1 id = 1 sheet (in the print)

and can we set the koordinat of a record to be printed if i want to make it with html?

if it can’t so i think i’m gonna generates a pdf to print not a html…

sory for my bad english,hope u get what i mean :))

thanks for seeing or replying this post

theres a project to do what you need

check out these links

php lib imagegrabscreen

if you are running linux

using linux and python

if you have complete access to a linux server

or for an app with no much traffic

the best option for a simple application

also this one

thanks brother…

im using windows…

anyway i just check out your links.

so , you mean i must generates html to a thumbnail picture first?

i don’t really get it…

Sorry, i think I 'm the one that didnt get what you want …

I just read really fast and thought you want a printscreen of some page…

I just read print , html, pdf, print … coordinate, generate pdf :P

Now i read carefully and still dont know what you want …

ok, now i get it

try something like

redirect user to the screen using print layout ( use some get variable to indicate its a print layout ) and print it using javascript

still using javascript, after the first print redirect the user to the next page, which will be a js variable, generated by PHP

and so on until the js variable that stores the next page is empty

aha…

now i get it brother…

i think it’s good,but if i do it like that,then i must klik OK[in Print dialogue] in every pages …

my User just want a single Click and all the letters printed…

I think the easiest way for this is to generate the PDF. You may allow the user which pages to view (from page x to page y), then render it to PDF. Then after that, you don’t have to worry if he or she wants to print all or just one page, or he wants to save it for record keeping or to print it later. After the PDF, they can do whatever they want with the generated report without you having to bother with it ;)

Alternatively you could output all the ‘pages’ onto one html page then use css to break it up into the required pages using;


page-break-before:always;