Printing Linked Documents

S

Sujay

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
 
M

McKirahan

Sujay said:
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

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

Are you familiar with "Server Side Includes (SSI)" ?
http://www.vortex-webdesign.com/help/intro_ssi.htm


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

[report1.shtm]
<html><head>
<title>report1.shtm</title>
</head><body>
<!--#include file="report1.txt" -->
</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.txt" -->
</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.txt" -->
<!--#include file="report2.txt" -->
</body></html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top