473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Send data to print one page at a time

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.

Oct 5 '07 #1
4 3070
drec <dr****@gmail.comwrote 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...
Oct 5 '07 #2
On 5 oct, 16:36, drec <dre...@gmail.comwrote:
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.

st************@hotmail.com

Oct 6 '07 #3
On Oct 5, 11:21 pm, en...@fibertel.com.ar wrote:
On 5 oct, 16:36, drec <dre...@gmail.comwrote:
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.

Oct 8 '07 #4
drec wrote:
On Oct 5, 11:21 pm, en...@fibertel.com.ar wrote:
>On 5 oct, 16:36, drec <dre...@gmail.comwrote:
>>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.
js*******@attglobal.net
==================
Oct 8 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: supercomputer | last post by:
I am using this function to parse data I have stored in an array. This is what the array looks like: , , , , , , , , , , , , , , , , , , , , , , , ] This is the code to parse the array:
4
by: jas | last post by:
I have a basic client/server socket situation setup....where the server accepts a connection and then waits for commands. On the client side, I create a socket, connect to the server...then I...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
2
by: bhav | last post by:
Hi Guys, I have a Web Forms' 'Table' control in my default.aspx page, along with other controls. I wanted to implement a functionality where a user can click a button to open the table's...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
1
by: danfolkes | last post by:
Hey Everyone, I am trying to send repeated messages from a "Node" to a "Server". It works the first time I send the from the Node to Server, but after that it either errors, or does not do...
3
by: danfolkes | last post by:
Why does the message send only once? The node sends once, then fails after that. <code> import socket import thread import time def Node(nodeAddress):
2
by: suma | last post by:
hi all... i have array and iwant this array to other page in URL let the name of array is numbers and i fill this array by loop from data base when i write this .. echo "<META...
0
by: Jorgen Bodde | last post by:
Hi, It depends on how your printer can be accessed. Is there a driver for it? The most simple way might be using ShellExecute (under windows) but I found no way to supress the print dialog. ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.