printing-web-page

How to Open Print Friendly Page Windows?

Our users can currently select a number of funds from a page and go to another page to see the funds compared on a chart. I now have to present the user with an option to produce a print-friendly fact sheet page for each fund in the chart. The requirement is that each page will open in a new window (or tab), and be minimised so as not t...

Web based printing from a Django application?

Is there any recent developments in web based printing? I know using @media print in CSS, PDF based solution or iTextSharp but they are not really easy (except @media print) but alignment is little tricky if receipt contains barcodes or if I have to format for A5 etc., Is there anything new in HTML5 which will support this? I would li...

Website: Make printable version with footnotes?

I have a website that uses editable divs so that a user can modify or make notes to a text. Is there a way I can have the website generate a pdf or some printable document with footnotes, such that if a user has this: <div class="text" id="text_1"> <div class="bodyTest">This is the body text</div> <div class="notes">These are th...

When printing style information is lost?

I've set the media to all but when printing a page and clicking "preview" much of the style information is missing. Any idea why? ...

Problem printing google maps printing and using 'page-break-before' in IE8

Hi, I'm having an annoying problem trying to get an html page with a google map on it to print correctly, I have a google map with an <h2> above it all wrapped in a div and the div is set to 'page-break-before:always;' in the css so that the map and its heading always sits on a new page. The problem is that in IE8 only i can always see...

pt or px for specifying border-width for print

should i use pt or px when specifying border-width in css for media print? i basically just want hairlines ...

Wanting to print a single large image per page, using a print stylesheet on Windows browsers

Hello. I have looked for answers to this on here, but not really found a solution. I basically have print quality images (300dpi) that are taken from PDFs. In this particular project we cannot just resort to PDFs, the button clicked must trigger the print command in the browser so 1 or 2 large print quality JPGs can be printed, one per...

Printing to Dot Matrix printers from Web Apps

Hello, I am not familiar with Dot Matrix printers but I have a customer with a WebApp that generates invoices, print checks, etc.. Currently they are printing directly from the server, meaning that the printer must be connected to the server or that the server needs a way to connect to the remote printer. As you can imagine this generat...

page-break-inside:avoid equivalent for Firefox and/or IE

I understand that the CSS page-break-inside:avoid instruction is supposed to prevent a page break within a div when an HTML document is printed. Searching the internet, I found that it is supported onlz for Opera and IE8. Is there a work around that allows me to prevent page breaks in FireFox (3.6) or IE below 8? ...

Printing API-Generated Google Maps from Internet Explorer

Hello, Having an odd problem printing an API-generated (V3) Google Map from Internet Explorer 7 & 8. I generate my map with JavaScript similar to the following: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; <script type="text/javascript"> function initialize() { var centroi...

Why is it so hard to print a web page properly?

I printed a page from a bank web site. Aside from the page with my data, I got five other pages with just a logo, just a header, just a footer, etc. It's sort of a joke in my household that you can't print a web page without getting a useless wasted page too. So, why is it so hard? Are we blaming the web page designers, the browsers, or...

Send data to Com port from a web page

Hi, I'm new to web development so please, could you help me to understand if I'm working in the right direction? There will be a webpage intended for our customers (not intranet) from where they can print labels. Some of the larger customers will have special label printers where configuration and printing using COM-port is the only acc...

IE 6 is crashing when printing from my web application

When clicking on print button the second time from my app, IE 6.0 is crashing. Steps to reproduce: 1) Click on print Button and cancel the print dialog. 2) Click on print again. IE 6.0 crashes. It works fine in IE 7 & 8. Below is the stack trace i got from WinDbg. 0:000> g (730.9e0): Access violation - code c0000005 (first chance)...

Java XHTMLRenderer print margin

I'm trying to use xhtmlprinter (flying saucer) to print the html part of a email. It almost works but on the page the imageable area of the paper is not used so the contents are clipped. Im using this code, which is modeled after the XHTMLPrintable in the simple package, to print the page. Graphics2D g2 = (Graphics2D) g; if (g2r == nu...

HTML, printable hyperlink references, like table of contents

A link in an HTML document is normally clickable. However, on a printed page, that feature is by natural causes not available. <a href="#foo">Link to foo</a> [... loads of content ...] <a name="foo"/>Here is foo Klicking on "Link to foo" on screen will scroll the page to the right place. Is there a way to refer to page number instead ...

Maintaining print CSS stylesheet files

How do you usually handle changes to screen and print CSS files? I typically have one screen CSS and one print CSS file and for the most part the I would copy the contents of screen CSS to print CSS file and then modify some properties, classes or ids, maybe set some display:none to certain classes etc. The problem is, while working on...