473,386 Members | 1,820 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,386 software developers and data experts.

Can I send multiple html pages to print one at a time

Hi,

The problem with using HTML as a report writer is primarily the
unreliable page breaking.

However it is a rather handy way of writing reports with images
embedded.

I could generate say 10 HTML pages of a maximum length to fit a page -
page1.htm, page2.htm, page3.htm ...etc.

Can I print all 10 pages, one after another automatically using perhaps
Javascript or some other method. Naturally dont want to ask the user
to do this.

Browser compatability would need to be I.E. 6 and Safari (not sure of
the version).

thanks

Tim

Oct 11 '06 #1
4 5847
JavaScript is most likely not what you are looking for. Creating pages
is not really possible with JavaScript. What you want is a server-side
program such as PHP or Perl.
ti*******@hotmail.com wrote:
Hi,

The problem with using HTML as a report writer is primarily the
unreliable page breaking.

However it is a rather handy way of writing reports with images
embedded.

I could generate say 10 HTML pages of a maximum length to fit a page -
page1.htm, page2.htm, page3.htm ...etc.

Can I print all 10 pages, one after another automatically using perhaps
Javascript or some other method. Naturally dont want to ask the user
to do this.

Browser compatability would need to be I.E. 6 and Safari (not sure of
the version).

thanks

Tim
Oct 11 '06 #2
GLC
I know javascript has a print method, but since each report page would
be a different web page I'm not sure the security around javascript
would allow one web page to print another web page. But it is worth a
try.

ti*******@hotmail.com wrote:
Hi,

The problem with using HTML as a report writer is primarily the
unreliable page breaking.

However it is a rather handy way of writing reports with images
embedded.

I could generate say 10 HTML pages of a maximum length to fit a page -
page1.htm, page2.htm, page3.htm ...etc.

Can I print all 10 pages, one after another automatically using perhaps
Javascript or some other method. Naturally dont want to ask the user
to do this.

Browser compatability would need to be I.E. 6 and Safari (not sure of
the version).

thanks

Tim
Oct 11 '06 #3

ti*******@hotmail.com wrote:
Hi,

The problem with using HTML as a report writer is primarily the
unreliable page breaking.
I have used the css 'page-break-before' to cause divs to initiate a
page break.

this is CSS mind you not JavaScript.

You may also want to experiment with: page: rotate; - also in CSS not
JavaScript.

--
http://creativeobjectworld.com - (cow)
a free-form, text-based, browser-based, real-time, multi-user virtual
world.

Oct 11 '06 #4
On 10 Oct 2006 17:47:40 -0700, ti*******@hotmail.com wrote:
>Hi,

The problem with using HTML as a report writer is primarily the
unreliable page breaking.

However it is a rather handy way of writing reports with images
embedded.

I could generate say 10 HTML pages of a maximum length to fit a page -
page1.htm, page2.htm, page3.htm ...etc.

Can I print all 10 pages, one after another automatically using perhaps
Javascript or some other method. Naturally dont want to ask the user
to do this.

Browser compatability would need to be I.E. 6 and Safari (not sure of
the version).

thanks
Why not use PDF? There are free or low cost programs to do this. I use
a printer driver called "easyPdf" -- to generate pdf pages. You do need a
printable form of your report, for example a Word version. See, for example,
my book:

http://masonc.home.netcom.com/quimby/quimby.pdf

Mason C

>
Tim
Oct 11 '06 #5

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

Similar topics

11
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
25
by: John Morgan | last post by:
Though I have designed and implemented a number of large reasonably well received web sites I do not consider myself a graphics designer I am now for the first time going to work with a ...
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...
1
by: Charlie | last post by:
Hello, I have data in an Access table that I would like to export to multiple HTML tables. I would like to split the data in the Access table (about 92,000 records) into multiple HTML...
9
by: trint | last post by:
Instead of just sending one document at a time, I need to send multiple documents as a print job because our laserprinter will only stack and staple one printjob it receives at a time. I need to...
2
by: ray well | last post by:
hi, i need to print multiple pages on a printer. this is what i'm using now Sub Print() Dim PrintDoc As New PrintDocument AddHandler PrintDoc.PrintPage, AddressOf Me.PrintText Do While...
3
by: timasmith | last post by:
Hi, The problem with using HTML as a report writer is primarily the unreliable page breaking. However it is a rather handy way of writing reports with images embedded. I could generate say...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
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
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.