473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a printer friendly page from multiple html files

12 New Member
Hi all,

I need some help. I have the index html page which has many <a> tags linking to other html pages. There is a need to create the printer friendly page by putting the contents of index file and also other html files in a single page without using Javascript.

I have read the article from this URL http://www.boxesandarr ows.com/view/printing_the_we b, and it seems like I can use CSS to do it, but I still have no idea about it yet.

Can any one give me some example how to do it? Thank you for any help in advance.

Cheers,
Jun 8 '08 #1
2 1632
oler1s
671 Recognized Expert Contributor
I have read the article from this URL http://www.boxesandarr ows.com/view/printing_the_we b, and it seems like I can use CSS to do it, but I still have no idea about it yet.
You misunderstand the article. Let’s say I am at a webpage, with all this text in the middle. There’s ad banners, pretty pictures, backgrounds, and what not too. When I print the page, I just want the text. I don’t want color backgrounds, ink intensive ads, and so on. CSS allows you to target stylesheets at specific media (screen, text to speech readers, and printers). So the article is essentially telling you to create a stylesheet, targeted for print, that restyles the page in a manner appropriate for printing.

While that rule of thumb still applies to you, it actually doesn’t deal with your question. You want to, given a page, take the contents of that page, and every page it links to, take the contents, and put them together. This is no longer in the realm of HTML and CSS, which are client side, structural markup and stylesheet languages. In your case, you have some arbitrary logic to follow. You need to write a computer program that runs on the server to do this.

Now, if you don’t already have an idea of what language you might use, etc., at this point I would say, you can’t accomplish your idea.
Jun 9 '08 #2
gits
5,390 Recognized Expert Moderator Expert
i think your best bet would be to create a pdf-document that contains all the content at serverside ... you might use PHP, JSP or any other serverside language for this. I'm not quite sure whether some XML/XSLT-magic could be used here alternativly to create PDF or something similar?

kind regards
Jun 9 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2106
by: winston | last post by:
does anyone know where i can find a printer friendly version of the python tutorial release 2.3?
4
1432
by: ST | last post by:
Hi, I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files, which are contained in the main file. In the mail file I have a link button which, supposedly, when clicked on, passes the current content page's url and page title to the printer friendly page, which has a placeholder for the content page. I could do this with session variables, but...
2
1682
by: Tigger | last post by:
Dear Experts, I've got a trouble problem that I need your help. The scenario is the following: 1) I need to add a "Print" button to my web page; 2) by clicking this button, the web page should be able to print out a well-formatted web page (printer friendly ). That means, I need to adjust the printing margins (left, top, right, bottom) programmatically. I really have no idea on how to achieve this but I know this is a very
2
1361
by: Ron | last post by:
Hello, I am working on a registration application for my companies intranet. The intranet is ASP classic based as of now. Unfortunately I only know ASP.NET. But that was all okay until I decided I wanted to have a 'printer friendly' class roster. In making it printer friendly, I would want to drop the intranet's standard Navigation and title bars. They allow me to do this by refering to a .asp file as .nfa from the link. However this...
2
1275
by: Sandy | last post by:
Hello - I tried to google this, but got back every page on the whole entire web that has printer friendly versions . . . I have a panel containing text from a repeater that also contains text in a multi-line textbox. How do I create a printer friendly version for this? Any help you can give me will be greatly appreciated -- or if you know exactly where to go on the web to obtain this info, please include the link.
3
2068
by: Bob | last post by:
I need to create a program that is essentially a special fax sender using multi line Dialogic cards. I figure that the best way to do this so that it can be used from any app is to create someting that can be installed as a printer on the local computer. When sending the print command so that the current document, whatever it is is transmitted to the program, I need to popup a box to get the desination info (name phone number etc..) ,when...
1
1308
by: dinoo | last post by:
Can any one help me out? I am looking out to implement printer friendly version of a web page. I do not want the header and footer show up in the print and I do not want to use frames (it is a client decision). I want to avoid writing the code again to make the printer friendly. Is there any way which would allow me to make the developer friendly page without lot of additional duplicate work. Thanks in advance.
15
5263
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
15
2148
by: Prisoner at War | last post by:
Okay, I'd like to create a print-friendly website, so I've been reading up on how to create print-friendly pages (without duplicating my site, of course, by having separate versions of each page).... Apparently one can use JavaScript or CSS for this.... Using CSS, it seems that the "trick" is to use * media="print" * in the <linktag.... So if I have a hyperlink to a print-friendly page...um, well, what's
0
8844
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.