By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.