Send data to print one page at a time
Send data to print one page at a time
am 05.10.2007 21:36:14 von drec
I currently have a script together that will display one record per
page and allow the user to manually click through pages to view the
next record. How can I translate this to printing the data? I want
to be able to print the data one page at a time, but only send one
print job to do this?
I have never done this before, but would imagine it is possible.
Re: Send data to print one page at a time
am 05.10.2007 22:11:51 von Good Man
drec wrote in news:1191612974.354235.92900
@o3g2000hsb.googlegroups.com:
> I currently have a script together that will display one record per
> page and allow the user to manually click through pages to view the
> next record. How can I translate this to printing the data? I want
> to be able to print the data one page at a time, but only send one
> print job to do this?
printing on the server where the website is, or printing on the client's
computer? only one is PHP based...
Re: Send data to print one page at a time
am 06.10.2007 06:21:40 von enkil
On 5 oct, 16:36, drec wrote:
> I currently have a script together that will display one record per
> page and allow the user to manually click through pages to view the
> next record. How can I translate this to printing the data? I want
> to be able to print the data one page at a time, but only send one
> print job to do this?
>
> I have never done this before, but would imagine it is possible.
You can do the following, if u can know all the page layouts, and then
put them insinde and array, then u can loop one by one, then, you can
migrate the array to javascript, where u have the window.print()
function, i havent try that function with params but i guess you can
pass some params (like a page layout) to window.print() function.
staccato_enkil@hotmail.com
Re: Send data to print one page at a time
am 08.10.2007 17:55:11 von drec
On Oct 5, 11:21 pm, en...@fibertel.com.ar wrote:
> On 5 oct, 16:36, drec wrote:
>
> > I currently have a script together that will display one record per
> > page and allow the user to manually click through pages to view the
> > next record. How can I translate this to printing the data? I want
> > to be able to print the data one page at a time, but only send one
> > print job to do this?
>
> > I have never done this before, but would imagine it is possible.
>
> You can do the following, if u can know all the page layouts, and then
> put them insinde and array, then u can loop one by one, then, you can
> migrate the array to javascript, where u have the window.print()
> function, i havent try that function with params but i guess you can
> pass some params (like a page layout) to window.print() function.
>
> staccato_en...@hotmail.com
Will I be able to control the printing at the client side? I want to
send print jobs from the client side instead of using a server printer.
Re: Send data to print one page at a time
am 08.10.2007 22:54:34 von Jerry Stuckle
drec wrote:
> On Oct 5, 11:21 pm, en...@fibertel.com.ar wrote:
>> On 5 oct, 16:36, drec wrote:
>>
>>> I currently have a script together that will display one record per
>>> page and allow the user to manually click through pages to view the
>>> next record. How can I translate this to printing the data? I want
>>> to be able to print the data one page at a time, but only send one
>>> print job to do this?
>>> I have never done this before, but would imagine it is possible.
>> You can do the following, if u can know all the page layouts, and then
>> put them insinde and array, then u can loop one by one, then, you can
>> migrate the array to javascript, where u have the window.print()
>> function, i havent try that function with params but i guess you can
>> pass some params (like a page layout) to window.print() function.
>>
>> staccato_en...@hotmail.com
>
>
> Will I be able to control the printing at the client side? I want to
> send print jobs from the client side instead of using a server printer.
>
staccato_en is correct. You can't do it in PHP. PHP is server-side
only, and can't access anything on the client side (other than cookies -
but that's really the http protocol doing it).
And you could even use javascript to load the next page after printing.
However, if I found someone doing that on my system, I'd be gone from
that site in no time. But if it's on an intranet or otherwise has
restricted access, it might be ok.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================