Printing Linked Documents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sujay

    #1

    Printing Linked Documents

    Hello ,

    I have an html file which contains link to 4 reports ( html files
    ). Instead of letting the user open one link at a time, and then
    printing the report , I want to print all the reports with a single
    button click, say on pressing a button "Print All" .

    I have found out a way, in which the reports can be printed , but
    the print dialog box is coming up each time( eg. for 4 reports it is 4
    times, and for n documents it would be n number of times ) ; which I
    find very irritating . I would rather prefer a single print dialog box
    coming up for n number of reports .

    Any help to the above would be highly appreciated .
    Thanks in advance .

    Sujay

  • McKirahan

    #2
    Re: Printing Linked Documents

    "Sujay" <sujayg_tech@ya hoo.com> wrote in message
    news:1103290529 .363789.190910@ f14g2000cwb.goo glegroups.com.. .[color=blue]
    > Hello ,
    >
    > I have an html file which contains link to 4 reports ( html files
    > ). Instead of letting the user open one link at a time, and then
    > printing the report , I want to print all the reports with a single
    > button click, say on pressing a button "Print All" .
    >
    > I have found out a way, in which the reports can be printed , but
    > the print dialog box is coming up each time( eg. for 4 reports it is 4
    > times, and for n documents it would be n number of times ) ; which I
    > find very irritating . I would rather prefer a single print dialog box
    > coming up for n number of reports .
    >
    > Any help to the above would be highly appreciated .
    > Thanks in advance .
    >
    > Sujay
    >[/color]

    One approach is to create a page with all reports within it.

    Are you familiar with "Server Side Includes (SSI)" ?



    [report.htm]
    <html><head>
    <title>report.h tm</title>
    </head><body>
    <a href="report1.s htm">Report One</a>
    <br><br>
    <a href="report2.s htm">Report Two</a>
    <br><br>
    <a href="reports.s htm">Report All</a>
    </body></html>

    [report1.shtm]
    <html><head>
    <title>report1. shtm</title>
    </head><body>
    <!--#include file="report1.t xt" -->
    </body></html>

    [report1.txt]
    <hr><b>Report 1</b><br>Hello World!</br>

    [report2.shtm]
    <html><head>
    <title>report2. shtm</title>
    </head><body>
    <!--#include file="report2.t xt" -->
    </body></html>

    [report2.txt]
    <hr><b>Report 2</b><br>Hello World!</br>

    [reports.shtm]
    <html><head>
    <title>reports. shtm</title>
    </head><body>
    <!--#include file="report1.t xt" -->
    <!--#include file="report2.t xt" -->
    </body></html>


    Comment

    Working...