
October 11th, 2006, 01:35 AM
| | | 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 | 
October 11th, 2006, 02:15 AM
| | | Re: Can I send multiple html pages to print one at a time
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. timasmith@hotmail.com wrote: Quote:
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
| | 
October 11th, 2006, 03:55 AM
| | | Re: Can I send multiple html pages to print one at a time
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. timasmith@hotmail.com wrote: Quote:
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
| | 
October 11th, 2006, 04:15 AM
| | | Re: Can I send multiple html pages to print one at a time timasmith@hotmail.com wrote: Quote:
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. | 
October 11th, 2006, 09:15 PM
| | | Re: Can I send multiple html pages to print one at a time
On 10 Oct 2006 17:47:40 -0700, timasmith@hotmail.com wrote: Quote:
>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 |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|