472,794 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 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 2036
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Bazzie | last post by:
I am using MS Access to index documents (in this case material safety data sheets), to track what departments they are used in, and to allow users to browse the actual documents that meet some...
5
by: Stefania Scott | last post by:
I am trying to print a word document from Access. The code I've written works well in my computer but does not in the one were it is needed. Here the piece of code: 'doc path strObjectPath =...
11
by: cybertof | last post by:
Hello, Is there a way to easily print a .pdf file to the printer ? (without an external component) Thanks.
2
by: Jurjen de Groot | last post by:
I'm about to start a new ASP.NET application, this application will generate several types of documents (PDF HTML XML-DOC) wich have to be printed at the client-side... (probably on different...
3
by: matpublic | last post by:
Hello. I've searched the web to find a 'easy' way to output a PDF to a printer (probably non-Postscript 3). However I have had no success. I'm using reporting services to generate a three...
4
by: gregjgman | last post by:
I'm looking for some code (html, javascript or otherwise) that I can embed into my web site so that when the user clicks on one button, they can send all hyperlinked documents on the page to a...
1
by: belinda | last post by:
I have used the ff command but only get the date printout and have no clue whats wrong: 'Printing function ' - opening a Word template with bookmarks ' - read bookmarks list from template and...
0
by: nikhilgargi | last post by:
Requirement: I need to provide printing capability in a C# desktop application that I am developing The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
7
by: QiongZ | last post by:
Hi, I just recently started studying C++ and basically copied an example in the textbook into VS2008, but it doesn't compile. I tried to modify the code by eliminating all the templates then it...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.