ressaince
(Bob Hartanto)
January 28, 2011, 2:18am
1
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
gusnips
(Gustavo)
January 28, 2011, 3:09am
2
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
ressaince
(Bob Hartanto)
January 28, 2011, 3:33am
3
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…
gusnips
(Gustavo)
January 28, 2011, 4:08am
4
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
Now i read carefully and still dont know what you want …
gusnips
(Gustavo)
January 28, 2011, 4:17am
5
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
ressaince
(Bob Hartanto)
January 29, 2011, 5:02am
6
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…
macinville
(Macinville)
January 29, 2011, 5:26am
7
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
krs3
(Chris)
January 30, 2011, 7:53pm
8
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;