471,073 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

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

Jul 23 '05 #1
1 1976
"Sujay" <su*********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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>
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Stefania Scott | last post: by
11 posts views Thread by cybertof | last post: by
2 posts views Thread by Jurjen de Groot | last post: by
3 posts views Thread by matpublic | last post: by

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.