|
Posted by Jerry Stuckle on 10/08/07 20:54
drec wrote:
> On Oct 5, 11:21 pm, en...@fibertel.com.ar wrote:
>> On 5 oct, 16:36, drec <dre...@gmail.com> 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
==================
Navigation:
[Reply to this message]
|